[llvm-commits] [llvm] r165470 - /llvm/trunk/include/llvm/Instructions.h

Bill Wendling isanbard at gmail.com
Mon Oct 8 18:03:48 PDT 2012


Author: void
Date: Mon Oct  8 20:03:48 2012
New Revision: 165470

URL: http://llvm.org/viewvc/llvm-project?rev=165470&view=rev
Log:
Remove a couple more 'hasAttrSomewhere' calls.

Modified:
    llvm/trunk/include/llvm/Instructions.h

Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=165470&r1=165469&r2=165470&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Mon Oct  8 20:03:48 2012
@@ -1356,7 +1356,10 @@
 
   /// @brief Determine if any call argument is an aggregate passed by value.
   bool hasByValArgument() const {
-    return AttributeList.hasAttrSomewhere(Attribute::ByVal);
+    for (unsigned I = 0, E = AttributeList.getNumAttrs(); I != E; ++I)
+      if (AttributeList.getAttributesAtIndex(I).hasByValAttr())
+        return true;
+    return false;
   }
 
   /// getCalledFunction - Return the function called, or null if this is an
@@ -3128,7 +3131,10 @@
 
   /// @brief Determine if any call argument is an aggregate passed by value.
   bool hasByValArgument() const {
-    return AttributeList.hasAttrSomewhere(Attribute::ByVal);
+    for (unsigned I = 0, E = AttributeList.getNumAttrs(); I != E; ++I)
+      if (AttributeList.getAttributesAtIndex(I).hasByValAttr())
+        return true;
+    return false;
   }
 
   /// getCalledFunction - Return the function called, or null if this is an





More information about the llvm-commits mailing list