| Index: src/IceTargetLoweringX86BaseImpl.h
|
| diff --git a/src/IceTargetLoweringX86BaseImpl.h b/src/IceTargetLoweringX86BaseImpl.h
|
| index fc0a8e207a44a0a8a1b98baa6fb581c9259bd9c6..77048b089c1a4c9934568f8dd973429138e36f9c 100644
|
| --- a/src/IceTargetLoweringX86BaseImpl.h
|
| +++ b/src/IceTargetLoweringX86BaseImpl.h
|
| @@ -4698,8 +4698,8 @@ void TargetX86Base<Machine>::lowerSwitch(const InstSwitch *Inst) {
|
| SizeT Size;
|
| typename Traits::Insts::Label *Label;
|
| };
|
| - std::stack<SearchSpan, std::deque<SearchSpan, CfgLocalAllocator<SearchSpan>>>
|
| - SearchSpanStack;
|
| + // The stack will only grow to the height of the tree so 12 should be plenty
|
| + std::stack<SearchSpan, llvm::SmallVector<SearchSpan, 12>> SearchSpanStack;
|
| SearchSpanStack.emplace(0, CaseClusters.size(), nullptr);
|
| bool DoneCmp = false;
|
|
|
|
|