summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-29 00:38:26 +0000
committerChris Lattner <sabre@nondot.org>2005-01-29 00:38:26 +0000
commita35dfcedd3ee34789bcb16c87d4b9ff1ca3add27 (patch)
tree639d25138318425103180161486ba11a294d90bc /llvm/lib/Transforms/Utils/CodeExtractor.cpp
parent84d3137da753a5d42f3a7e6b43ba890acc77f68f (diff)
switchinst ctor now takes a hint for the number of cases that it will have.
llvm-svn: 19898
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CodeExtractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
index 3878ea2e675e..5a040010059e 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -439,7 +439,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer,
// Now we can emit a switch statement using the call as a value.
SwitchInst *TheSwitch =
new SwitchInst(ConstantUInt::getNullValue(Type::UShortTy),
- codeReplacer, codeReplacer);
+ codeReplacer, 0, codeReplacer);
// Since there may be multiple exits from the original region, make the new
// function return an unsigned, switch on that number. This loop iterates