From: Bill Wendling Date: Tue, 16 Oct 2012 05:20:51 +0000 (+0000) Subject: Pass in the context to the Attributes::get method. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f69e1483bb90b31838fee51c3c1e17305f536ca;p=platform%2Fupstream%2Fllvm.git Pass in the context to the Attributes::get method. llvm-svn: 166007 --- diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 969afe5..61fb4e9 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/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);