llvm.org GIT mirror llvm / 9209805
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 Bill Wendling 8 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
508508 HANDLE_ATTR(NonLazyBind);
509509 #undef HANDLE_ATTR
510510 if (attrs.hasAttribute(Attributes::StackAlignment))
511 Out << "B.addStackAlignmentAttr(Attribute::constructStackAlignmentFromInt("
512 << attrs.getStackAlignment()
513 << "))";
511 Out << "B.addStackAlignmentAttr(" << attrs.getStackAlignment() << ")";
514512 nl(Out);
515513 attrs.removeAttribute(Attributes::StackAlignment);
516514 assert(!attrs.hasAttributes() && "Unhandled attribute!");