aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-24 09:56:43 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-24 09:56:43 +0000
commitef383f179049f4f1b5e8552f6a3c4879279459f7 (patch)
tree7ddf1239bc3b8b52aa231ddf01c3d34271c6072d /lib/Transforms
parenta77adc3b7ed9fbe343167d51a96341f3636e3565 (diff)
downloadexternal_llvm-ef383f179049f4f1b5e8552f6a3c4879279459f7.zip
external_llvm-ef383f179049f4f1b5e8552f6a3c4879279459f7.tar.gz
external_llvm-ef383f179049f4f1b5e8552f6a3c4879279459f7.tar.bz2
use callsite to obtain all arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index 8678366..598e7d2 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/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(),