Pass in the context to the Attributes::get method.
llvm-svn: 166007
This commit is contained in:
parent
278bd2e3a3
commit
4f69e1483b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue