add an assertion to make it clear that PHI nodes are not allowed.
[oota-llvm.git] / lib / Transforms / IPO / LowerSetJmp.cpp
index d5997fb4b514305f489bb6f925fdfbfb8fa2e997..dfc040b83342405ed444559636a8470d47039b26 100644 (file)
@@ -474,7 +474,7 @@ void LowerSetJmp::visitCallInst(CallInst& CI)
     InvokeInst::Create(CI.getCalledValue(), NewBB, PrelimBBMap[Func],
                        Params.begin(), Params.end(), CI.getName(), Term);
   II->setCallingConv(CI.getCallingConv());
-  II->setParamAttrs(CI.getParamAttrs());
+  II->setAttributes(CI.getAttributes());
 
   // Replace the old call inst with the invoke inst and remove the call.
   CI.replaceAllUsesWith(II);