[llvm-commits] [llvm] r166007 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Bill Wendling
isanbard at gmail.com
Mon Oct 15 22:20:51 PDT 2012
Author: void
Date: Tue Oct 16 00:20:51 2012
New Revision: 166007
URL: http://llvm.org/viewvc/llvm-project?rev=166007&view=rev
Log:
Pass in the context to the Attributes::get method.
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=166007&r1=166006&r2=166007&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Tue Oct 16 00:20:51 2012
@@ -513,7 +513,7 @@
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);
More information about the llvm-commits
mailing list