Update InvokeInst to work like CallInst
[oota-llvm.git] / lib / AsmParser / llvmAsmParser.y
index adf6eadc7c7786f9f1775c5283439a99098b1a22..5570692864a9a29aaece7e7897ca1fe5d1cdd64c 100644 (file)
@@ -2652,7 +2652,7 @@ BBTerminatorInst : RET ResolvedVal {              // Return with a result...
     }
 
     // Create the InvokeInst
-    InvokeInst *II = new InvokeInst(V, Normal, Except, &Args[0], Args.size());
+    InvokeInst *II = new InvokeInst(V, Normal, Except, Args.begin(), Args.end());
     II->setCallingConv($2);
     $$ = II;
     delete $6;