mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 17:00:01 +00:00
Don't pass in an Attributes object to something that expects an integral value.
llvm-svn: 165887
This commit is contained in:
parent
161580aadb
commit
e37f43db47
@ -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!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user