diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-29 00:38:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-29 00:38:45 +0000 |
commit | 667fdaef9f83b4cd957dda65c1d65113c7863ee3 (patch) | |
tree | 06b25a945f63847a99b8ad76553952db9334998b /lib/Transforms/IPO/LowerSetJmp.cpp | |
parent | 378805969ea928b91aa321746031a8f51667a783 (diff) |
Switchinst takes a hint for the number of cases it will have.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r-- | lib/Transforms/IPO/LowerSetJmp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp index a8418fb855..2ba8a756d8 100644 --- a/lib/Transforms/IPO/LowerSetJmp.cpp +++ b/lib/Transforms/IPO/LowerSetJmp.cpp @@ -352,7 +352,7 @@ LowerSetJmp::SwitchValuePair LowerSetJmp::GetSJSwitch(Function* Func, CallInst(TryCatchLJ, make_vector<Value*>(GetSetJmpMap(Func), 0), "SJNum"); DecisionBBIL.push_back(SJNum); - SwitchInst* SI = new SwitchInst(SJNum, Rethrow, DecisionBB); + SwitchInst* SI = new SwitchInst(SJNum, Rethrow, 0, DecisionBB); return SwitchValMap[Func] = SwitchValuePair(SI, LJVal); } |