summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit2d60e1ec0ca2977910c4d8bf3652039d20139eaa (patch)
tree4b79a6ad9ce2a3a7a10ed1df79621fa765c68401 /llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
parent2c5bef2a743c2231ea55c0284145330d960f3cc5 (diff)
downloadbcm5719-llvm-2d60e1ec0ca2977910c4d8bf3652039d20139eaa.tar.gz
bcm5719-llvm-2d60e1ec0ca2977910c4d8bf3652039d20139eaa.zip
back out my recent commit (r80858), it seems to break self-hosting buildbot's stage 2 configure
llvm-svn: 80871
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
index d565eb5e834..29712b3c13d 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud