[llvm-commits] [llvm] r165887 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Bill Wendling
isanbard at gmail.com
Sat Oct 13 20:27:15 PDT 2012
Author: void
Date: Sat Oct 13 22:27:15 2012
New Revision: 165887
URL: http://llvm.org/viewvc/llvm-project?rev=165887&view=rev
Log:
Don't pass in an Attributes object to something that expects an integral value.
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=165887&r1=165886&r2=165887&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Sat Oct 13 22:27:15 2012
@@ -509,9 +509,7 @@
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!");
More information about the llvm-commits
mailing list