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 | f1355a55f8d815f5385e9a4432195f03b65f3a42 (patch) | |
tree | 22a84137e3fd97e2796d08dd07436bf2f4ff566c /lib/Transforms/IPO/LowerSetJmp.cpp | |
parent | 44c8265cf86ba3cfc317605726296474aa8d7fa6 (diff) |
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/LowerSetJmp.cpp')
-rw-r--r-- | lib/Transforms/IPO/LowerSetJmp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp index 2fa6a10ced..dbc3199162 100644 --- a/lib/Transforms/IPO/LowerSetJmp.cpp +++ b/lib/Transforms/IPO/LowerSetJmp.cpp @@ -475,7 +475,7 @@ void LowerSetJmp::visitCallInst(CallInst& CI) std::vector<Value*> Params(CI.op_begin() + 1, CI.op_end()); InvokeInst* II = new InvokeInst(CI.getCalledValue(), NewBB, PrelimBBMap[Func], - &Params[0], Params.size(), CI.getName(), Term); + Params.begin(), Params.end(), CI.getName(), Term); // Replace the old call inst with the invoke inst and remove the call. CI.replaceAllUsesWith(II); |