Pass in the context to the Attributes::get method.
authorBill Wendling <isanbard@gmail.com>
Tue, 16 Oct 2012 05:20:51 +0000 (05:20 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 16 Oct 2012 05:20:51 +0000 (05:20 +0000)
llvm-svn: 166007

llvm/lib/Target/CppBackend/CPPBackend.cpp

index 969afe5..61fb4e9 100644 (file)
@@ -513,7 +513,7 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
       nl(Out);
       attrs.removeAttribute(Attributes::StackAlignment);
       assert(!attrs.hasAttributes() && "Unhandled attribute!");
-      Out << "PAWI.Attrs = Attributes::get(B);";
+      Out << "PAWI.Attrs = Attributes::get(mod->getContext(), B);";
       nl(Out);
       Out << "Attrs.push_back(PAWI);";
       nl(Out);