summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-15 08:37:34 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-15 08:37:34 +0000
commit5bd375a6cc2e7518c4cfb881b0c5c42f8b78f947 (patch)
tree553cd8a3d226b446ce65aadcd67020d47f2e666a /llvm/lib/Transforms/Utils/CodeExtractor.cpp
parent6730e4d904d02814325a370d06eb01880009730f (diff)
downloadbcm5719-llvm-5bd375a6cc2e7518c4cfb881b0c5c42f8b78f947.tar.gz
bcm5719-llvm-5bd375a6cc2e7518c4cfb881b0c5c42f8b78f947.zip
Convert CallInst and InvokeInst APIs to use ArrayRef.
llvm-svn: 135265
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 9a2e53fd518..081352358b9 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -429,7 +429,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer,
}
// Emit the call to the function
- CallInst *call = CallInst::Create(newFunction, params.begin(), params.end(),
+ CallInst *call = CallInst::Create(newFunction, params,
NumExitBlocks > 1 ? "targetBlock" : "");
codeReplacer->getInstList().push_back(call);
OpenPOWER on IntegriCloud