Attributes Rewrite
[oota-llvm.git] / lib / VMCore / Function.cpp
index cbf1037f178155cd763aa77b96d335c23027865b..9c4f2d939952c3c7cb9b0a77f3dec0d76591b5cc 100644 (file)
@@ -185,7 +185,7 @@ Function::Function(FunctionType *Ty, LinkageTypes Linkage,
 
   // Ensure intrinsics have the right parameter attributes.
   if (unsigned IID = getIntrinsicID())
-    setAttributes(Intrinsic::getAttributes(Intrinsic::ID(IID)));
+    setAttributes(Intrinsic::getAttributes(getContext(), Intrinsic::ID(IID)));
 
 }