[llvm-commits] [llvm] r165206 - /llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp

Bill Wendling isanbard at gmail.com
Wed Oct 3 23:48:57 PDT 2012


Author: void
Date: Thu Oct  4 01:48:57 2012
New Revision: 165206

URL: http://llvm.org/viewvc/llvm-project?rev=165206&view=rev
Log:
Query for attributes via the correct method call.

Modified:
    llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp

Modified: llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp?rev=165206&r1=165205&r2=165206&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp Thu Oct  4 01:48:57 2012
@@ -749,7 +749,7 @@
     }
   }
 
-  if (FnAttrs != Attribute::None)
+  if (FnAttrs.hasAttributes())
     AttributesVec.push_back(AttributeWithIndex::get(~0, FnAttrs));
 
   // Reconstruct the AttributesList based on the vector we constructed.
@@ -811,7 +811,7 @@
         AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs));
     }
 
-    if (FnAttrs != Attribute::None)
+    if (FnAttrs.hasAttributes())
       AttributesVec.push_back(AttributeWithIndex::get(~0, FnAttrs));
 
     // Reconstruct the AttributesList based on the vector we constructed.





More information about the llvm-commits mailing list