Use method to query for attributes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165209 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2012-10-04 06:58:52 +00:00
parent 5df15c692b
commit b44e3ee1a7
3 changed files with 11 additions and 11 deletions

View File

@@ -2063,7 +2063,7 @@ static void ChangeCalleesToFastCall(Function *F) {
static AttrListPtr StripNest(const AttrListPtr &Attrs) {
for (unsigned i = 0, e = Attrs.getNumSlots(); i != e; ++i) {
if ((Attrs.getSlot(i).Attrs & Attribute::Nest) == 0)
if (!Attrs.getSlot(i).Attrs.hasNestAttr())
continue;
// There can be only one.