Make the AttrListPtr object a part of the LLVMContext.
[oota-llvm.git] / utils / TableGen / IntrinsicEmitter.cpp
index e1910784a6d45abdbbef8dffd5e4cdea8251d410..fe55242930b183b863188f763fb2563311210113 100644 (file)
@@ -621,7 +621,7 @@ EmitAttributes(const std::vector<CodeGenIntrinsic> &Ints, raw_ostream &OS) {
   
   OS << "    }\n";
   OS << "  }\n";
-  OS << "  return AttrListPtr::get(ArrayRef<AttributeWithIndex>(AWI, "
+  OS << "  return AttrListPtr::get(C, ArrayRef<AttributeWithIndex>(AWI, "
              "NumAttrs));\n";
   OS << "}\n";
   OS << "#endif // GET_INTRINSIC_ATTRIBUTES\n\n";