summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Wodnicki <pawel@32bitmicro.com>2012-11-23 19:56:57 +0000
committerPawel Wodnicki <pawel@32bitmicro.com>2012-11-23 19:56:57 +0000
commit024e48b43d3fbafe24b0205fb8b94015d43ff3a6 (patch)
treea34b14b7c9905da96788348803ea98ec48e2ba70
parentdf46b9004b0ac81d6cd37a644e5c8243af0afc61 (diff)
downloadllvm-024e48b43d3fbafe24b0205fb8b94015d43ff3a6.tar.gz
llvm-024e48b43d3fbafe24b0205fb8b94015d43ff3a6.tar.bz2
llvm-024e48b43d3fbafe24b0205fb8b94015d43ff3a6.tar.xz
Merging r168512: into 3.2 release branch.
Update call to the new syntax. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168526 91177308-0d34-0410-b5e6-96231b3b80d8
-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);