Update InvokeInst to work like CallInst
[oota-llvm.git] / lib / Transforms / IPO / LowerSetJmp.cpp
index 2fa6a10cedb96bba112b2b5855ebc07ddb861209..dbc3199162a33f7d0f4b5a95d67b19c01cf7da0e 100644 (file)
@@ -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);