diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-16 05:20:51 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-16 05:20:51 +0000 |
commit | 847a9c33981d88055bf83c14c341ed3a4db10c85 (patch) | |
tree | 180f4177f9bc179660e98ee315eafa6961d02cc2 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 126048c18c4a735ebb2c7c544b9bd48f395b53d9 (diff) |
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
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 969afe56e9..61fb4e98ec 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -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); |