summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2007-08-27 19:04:21 +0000
committerDavid Greene <greened@obbligato.org>2007-08-27 19:04:21 +0000
commit703623d5711850e441be05fad0384932a22506b8 (patch)
tree7557318f00812d0ef4c93309838f12295a6e2642 /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
parent8f63b9d534c52cd8008e3d16be7f46d9e0b33ab5 (diff)
downloadbcm5719-llvm-703623d5711850e441be05fad0384932a22506b8.tar.gz
bcm5719-llvm-703623d5711850e441be05fad0384932a22506b8.zip
Update InvokeInst to work like CallInst
llvm-svn: 41506
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index d40df48b29a..9853afe8752 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -447,7 +447,7 @@ Function *ArgPromotion::DoPromotion(Function *F,
Instruction *New;
if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) {
New = new InvokeInst(NF, II->getNormalDest(), II->getUnwindDest(),
- &Args[0], Args.size(), "", Call);
+ Args.begin(), Args.end(), "", Call);
cast<InvokeInst>(New)->setCallingConv(CS.getCallingConv());
} else {
New = new CallInst(NF, Args.begin(), Args.end(), "", Call);
OpenPOWER on IntegriCloud