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 /tools/llvm-upgrade | |
parent | 44c8265cf86ba3cfc317605726296474aa8d7fa6 (diff) | |
download | external_llvm-f1355a55f8d815f5385e9a4432195f03b65f3a42.zip external_llvm-f1355a55f8d815f5385e9a4432195f03b65f3a42.tar.gz external_llvm-f1355a55f8d815f5385e9a4432195f03b65f3a42.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 'tools/llvm-upgrade')
-rw-r--r-- | tools/llvm-upgrade/UpgradeParser.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y index 251cc77..5893fcd 100644 --- a/tools/llvm-upgrade/UpgradeParser.y +++ b/tools/llvm-upgrade/UpgradeParser.y @@ -3342,7 +3342,8 @@ BBTerminatorInst // Create the call node... if (!$6) { // Has no arguments? - $$.TI = new InvokeInst(V, Normal, Except, 0, 0); + std::vector<Value*> Args; + $$.TI = new InvokeInst(V, Normal, Except, Args.begin(), Args.end()); } else { // Has arguments? // Loop through FunctionType's arguments and ensure they are specified // correctly! @@ -3362,7 +3363,7 @@ BBTerminatorInst if (I != E || (ArgI != ArgE && !Ty->isVarArg())) error("Invalid number of parameters detected"); - $$.TI = new InvokeInst(V, Normal, Except, &Args[0], Args.size()); + $$.TI = new InvokeInst(V, Normal, Except, Args.begin(), Args.end()); } cast<InvokeInst>($$.TI)->setCallingConv(upgradeCallingConv($2)); delete $3.PAT; |