Update call to the new syntax.
authorBill Wendling <isanbard@gmail.com>
Fri, 23 Nov 2012 11:05:35 +0000 (11:05 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 23 Nov 2012 11:05:35 +0000 (11:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168512 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index 0f3efd8345026769090a549c26e36d18514fa4b2..5c909903f94bf443c41fbfbf2ffc883bf523ff6b 100644 (file)
@@ -518,7 +518,7 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
       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);