summaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-14 03:27:15 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-14 03:27:15 +0000
commit9209805690b0cb2ec47cf682747e2a3b9408ebb4 (patch)
treed39f742914c86cf2cf9ef8dfdcd223fb132f54cb /lib/Target/CppBackend
parenteb7ff058483335d2cdd8fb34a70ae04b22de52d0 (diff)
downloadllvm-9209805690b0cb2ec47cf682747e2a3b9408ebb4.tar.gz
llvm-9209805690b0cb2ec47cf682747e2a3b9408ebb4.tar.bz2
llvm-9209805690b0cb2ec47cf682747e2a3b9408ebb4.tar.xz
Don't pass in an Attributes object to something that expects an integral value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 096e2bc13b..5b17a0f927 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -509,9 +509,7 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
HANDLE_ATTR(NonLazyBind);
#undef HANDLE_ATTR
if (attrs.hasAttribute(Attributes::StackAlignment))
- Out << "B.addStackAlignmentAttr(Attribute::constructStackAlignmentFromInt("
- << attrs.getStackAlignment()
- << "))";
+ Out << "B.addStackAlignmentAttr(" << attrs.getStackAlignment() << ")";
nl(Out);
attrs.removeAttribute(Attributes::StackAlignment);
assert(!attrs.hasAttributes() && "Unhandled attribute!");