mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 20:57:15 +00:00
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:
parent
126048c18c
commit
847a9c3398
@ -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…
x
Reference in New Issue
Block a user