[llvm-commits] [llvm] r168512 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp

Bill Wendling isanbard at gmail.com
Fri Nov 23 03:05:36 PST 2012


Author: void
Date: Fri Nov 23 05:05:35 2012
New Revision: 168512

URL: http://llvm.org/viewvc/llvm-project?rev=168512&view=rev
Log:
Update call to the new syntax.

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=168512&r1=168511&r2=168512&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Fri Nov 23 05:05:35 2012
@@ -518,7 +518,7 @@
       Out << "Attrs.push_back(PAWI);";
       nl(Out);
     }
-    Out << name << "_PAL = AttrListPtr::get(Attrs);";
+    Out << name << "_PAL = AttrListPtr::get(mod->getContext(), Attrs);";
     nl(Out);
     out(); nl(Out);
     Out << '}'; nl(Out);





More information about the llvm-commits mailing list