summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-29 00:38:45 +0000
committerChris Lattner <sabre@nondot.org>2005-01-29 00:38:45 +0000
commita3f06fa2dda8723e6dee40a156523850ca8f380d (patch)
tree6ee3e777a8f0380e565a9cc61b9cd423714a8302 /llvm/lib/Transforms
parenta35dfcedd3ee34789bcb16c87d4b9ff1ca3add27 (diff)
downloadbcm5719-llvm-a3f06fa2dda8723e6dee40a156523850ca8f380d.tar.gz
bcm5719-llvm-a3f06fa2dda8723e6dee40a156523850ca8f380d.zip
Switchinst takes a hint for the number of cases it will have.
llvm-svn: 19899
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/LowerSetJmp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp
index a8418fb855c..2ba8a756d84 100644
--- a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud