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

llvm-svn: 166007
This commit is contained in:
Bill Wendling 2012-10-16 05:20:51 +00:00
parent 278bd2e3a3
commit 4f69e1483b
1 changed files with 1 additions and 1 deletions

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