Pass in the context to the Attributes::get method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-10-16 05:20:51 +00:00
parent 126048c18c
commit 847a9c3398

View 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);