summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SimplifyCFGPass.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-09-03 02:02:59 +0000
committerGabor Greif <ggreif@gmail.com>2009-09-03 02:02:59 +0000
commit03a5f139fb7d3e9c49fe95aea4c717fab2285d82 (patch)
tree15c059841451d835cf462421ef76cd4498c234d5 /lib/Transforms/Scalar/SimplifyCFGPass.cpp
parent5f4ac848d94b0a92e19ac7f2b3d0284d7d323173 (diff)
downloadllvm-03a5f139fb7d3e9c49fe95aea4c717fab2285d82.tar.gz
llvm-03a5f139fb7d3e9c49fe95aea4c717fab2285d82.tar.bz2
llvm-03a5f139fb7d3e9c49fe95aea4c717fab2285d82.tar.xz
back out my recent commit (r80858), it seems to break self-hosting buildbot's stage 2 configure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyCFGPass.cpp')
-rw-r--r--lib/Transforms/Scalar/SimplifyCFGPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/lib/Transforms/Scalar/SimplifyCFGPass.cpp
index d565eb5e83..29712b3c13 100644
--- a/lib/Transforms/Scalar/SimplifyCFGPass.cpp
+++ b/lib/Transforms/Scalar/SimplifyCFGPass.cpp
@@ -78,7 +78,7 @@ static void ChangeToUnreachable(Instruction *I, LLVMContext &Context) {
/// ChangeToCall - Convert the specified invoke into a normal call.
static void ChangeToCall(InvokeInst *II) {
BasicBlock *BB = II->getParent();
- SmallVector<Value*, 8> Args(II->op_begin(), II->op_end() - 3);
+ SmallVector<Value*, 8> Args(II->op_begin()+3, II->op_end());
CallInst *NewCall = CallInst::Create(II->getCalledValue(), Args.begin(),
Args.end(), "", II);
NewCall->takeName(II);