diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-04 06:58:52 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-04 06:58:52 +0000 |
commit | e8619aa1c18bece2ed0603bf9ae08a4a68b2855f (patch) | |
tree | eff85365317f3851efd40aaee5c6ae21776eab6b /llvm/lib/Transforms/IPO/GlobalOpt.cpp | |
parent | d777398ee4244a5f7877c72794c8abc8696ba81a (diff) | |
download | bcm5719-llvm-e8619aa1c18bece2ed0603bf9ae08a4a68b2855f.tar.gz bcm5719-llvm-e8619aa1c18bece2ed0603bf9ae08a4a68b2855f.zip |
Use method to query for attributes.
llvm-svn: 165209
Diffstat (limited to 'llvm/lib/Transforms/IPO/GlobalOpt.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/GlobalOpt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp index b1ba6be5ff6..7e3b45b6dda 100644 --- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp +++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp @@ -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. |