mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +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:
@@ -513,7 +513,7 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
|
|||||||
nl(Out);
|
nl(Out);
|
||||||
attrs.removeAttribute(Attributes::StackAlignment);
|
attrs.removeAttribute(Attributes::StackAlignment);
|
||||||
assert(!attrs.hasAttributes() && "Unhandled attribute!");
|
assert(!attrs.hasAttributes() && "Unhandled attribute!");
|
||||||
Out << "PAWI.Attrs = Attributes::get(B);";
|
Out << "PAWI.Attrs = Attributes::get(mod->getContext(), B);";
|
||||||
nl(Out);
|
nl(Out);
|
||||||
Out << "Attrs.push_back(PAWI);";
|
Out << "Attrs.push_back(PAWI);";
|
||||||
nl(Out);
|
nl(Out);
|
||||||
|
Reference in New Issue
Block a user