summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/PruneEH.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/IPO/PruneEH.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/IPO/PruneEH.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/PruneEH.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp
index 3ae771c55f0..161246bc259 100644
--- a/llvm/lib/Transforms/IPO/PruneEH.cpp
+++ b/llvm/lib/Transforms/IPO/PruneEH.cpp
@@ -168,7 +168,7 @@ bool PruneEH::SimplifyFunction(Function *F) {
for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) {
if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator()))
if (II->doesNotThrow()) {
- SmallVector<Value*, 8> Args(II->op_begin()+3, II->op_end());
+ SmallVector<Value*, 8> Args(II->op_begin(), II->op_end() - 3);
// Insert a call instruction before the invoke.
CallInst *Call = CallInst::Create(II->getCalledValue(),
Args.begin(), Args.end(), "", II);
OpenPOWER on IntegriCloud