projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
126048c
)
Pass in the context to the Attributes::get method.
author
Bill Wendling
<isanbard@gmail.com>
Tue, 16 Oct 2012 05:20:51 +0000
(
05:20
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Tue, 16 Oct 2012 05:20:51 +0000
(
05:20
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166007
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/CppBackend/CPPBackend.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/CppBackend/CPPBackend.cpp
b/lib/Target/CppBackend/CPPBackend.cpp
index 969afe56e963112b28c431de99c38cc98255afa3..61fb4e98ecd804628dd324cc7d732da56817f68e 100644
(file)
--- a/
lib/Target/CppBackend/CPPBackend.cpp
+++ b/
lib/Target/CppBackend/CPPBackend.cpp
@@
-513,7
+513,7
@@
void CppWriter::printAttributes(const AttrListPtr &PAL,
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);