diff options
author | David Greene <greened@obbligato.org> | 2007-08-27 19:04:21 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2007-08-27 19:04:21 +0000 |
commit | 8278ef592ef0caf5cf0ccd8646fb7fdfbdc2e2d8 (patch) | |
tree | 22a84137e3fd97e2796d08dd07436bf2f4ff566c /lib/Transforms/IPO/DeadArgumentElimination.cpp | |
parent | b2e7a6ba64fe6ef2c62668ef6d42b09671fc8804 (diff) | |
download | external_llvm-8278ef592ef0caf5cf0ccd8646fb7fdfbdc2e2d8.zip external_llvm-8278ef592ef0caf5cf0ccd8646fb7fdfbdc2e2d8.tar.gz external_llvm-8278ef592ef0caf5cf0ccd8646fb7fdfbdc2e2d8.tar.bz2 |
Update InvokeInst to work like CallInst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/DeadArgumentElimination.cpp')
-rw-r--r-- | lib/Transforms/IPO/DeadArgumentElimination.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp index b5ec103..dd5d668 100644 --- a/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -174,7 +174,7 @@ bool DAE::DeleteDeadVarargs(Function &Fn) { 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); @@ -540,7 +540,7 @@ void DAE::RemoveDeadArgumentsFromFunction(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); |