summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-03-22 08:28:00 +0000
committerGabor Greif <ggreif@gmail.com>2010-03-22 08:28:00 +0000
commit7a743e15e31701db08f2092538ed2d5dfabe0cdb (patch)
tree608a8cc62fcefefa4e351a15129220b21be28948 /llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
parenta6eedc3c032e9dd7754b109ebc09b9626d8e86ef (diff)
downloadbcm5719-llvm-7a743e15e31701db08f2092538ed2d5dfabe0cdb.tar.gz
bcm5719-llvm-7a743e15e31701db08f2092538ed2d5dfabe0cdb.zip
Now that hopefully all direct accesses to InvokeInst operands are fixed
we can reapply the InvokeInst operand reordering patch. (see r98957). llvm-svn: 99170
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 738c5e8d13d..b621e8d8aa6 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
+++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
@@ -79,7 +79,7 @@ static void ChangeToUnreachable(Instruction *I) {
/// 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()+3, II->op_end());
+ SmallVector<Value*, 8> Args(II->op_begin(), II->op_end() - 3);
CallInst *NewCall = CallInst::Create(II->getCalledValue(), Args.begin(),
Args.end(), "", II);
NewCall->takeName(II);
OpenPOWER on IntegriCloud