summaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-11-23 11:05:35 +0000
committerBill Wendling <isanbard@gmail.com>2012-11-23 11:05:35 +0000
commitb46702c800e0e1ddb9b4b022d0c08c2b0b27b269 (patch)
tree90617a82b47b2354d0af000fce8ff6d9fb4ee581 /lib/Target/CppBackend
parentf284aefa112b76d64917b156cf5fa7997fb0bdac (diff)
downloadllvm-b46702c800e0e1ddb9b4b022d0c08c2b0b27b269.tar.gz
llvm-b46702c800e0e1ddb9b4b022d0c08c2b0b27b269.tar.bz2
llvm-b46702c800e0e1ddb9b4b022d0c08c2b0b27b269.tar.xz
Update call to the new syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168512 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 0f3efd8345..5c909903f9 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -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);