diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-06-24 09:56:43 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-06-24 09:56:43 +0000 |
commit | 42f620cc553ceafcf9766f6a320bbe614f9230b0 (patch) | |
tree | 206ee667ce2bc340e735af2cef8fef64f8e1e260 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | bfcacee9b3a86bda499c1115333ec627d24eea46 (diff) | |
download | bcm5719-llvm-42f620cc553ceafcf9766f6a320bbe614f9230b0.tar.gz bcm5719-llvm-42f620cc553ceafcf9766f6a320bbe614f9230b0.zip |
use callsite to obtain all arguments
llvm-svn: 106728
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index 86783666b1b..598e7d29e37 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -63,7 +63,8 @@ static void HandleCallsInBlockInlinedThroughInvoke(BasicBlock *BB, // Next, create the new invoke instruction, inserting it at the end // of the old basic block. - SmallVector<Value*, 8> InvokeArgs(CI->op_begin()+1, CI->op_end()); + ImmutableCallSite CS(CI); + SmallVector<Value*, 8> InvokeArgs(CS.arg_begin(), CS.arg_end()); InvokeInst *II = InvokeInst::Create(CI->getCalledValue(), Split, InvokeDest, InvokeArgs.begin(), InvokeArgs.end(), |