summaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-16 05:20:51 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-16 05:20:51 +0000
commit847a9c33981d88055bf83c14c341ed3a4db10c85 (patch)
tree180f4177f9bc179660e98ee315eafa6961d02cc2 /lib/Target/CppBackend
parent126048c18c4a735ebb2c7c544b9bd48f395b53d9 (diff)
downloadllvm-847a9c33981d88055bf83c14c341ed3a4db10c85.tar.gz
llvm-847a9c33981d88055bf83c14c341ed3a4db10c85.tar.bz2
llvm-847a9c33981d88055bf83c14c341ed3a4db10c85.tar.xz
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')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp2
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);