[llvm-commits] [llvm] r165135 - /llvm/trunk/include/llvm/Attributes.h

Bill Wendling isanbard at gmail.com
Wed Oct 3 11:10:49 PDT 2012


Author: void
Date: Wed Oct  3 13:10:49 2012
New Revision: 165135

URL: http://llvm.org/viewvc/llvm-project?rev=165135&view=rev
Log:
No need to call functions which do the same thing as the default.

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

Modified: llvm/trunk/include/llvm/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Attributes.h?rev=165135&r1=165134&r2=165135&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Attributes.h (original)
+++ llvm/trunk/include/llvm/Attributes.h Wed Oct  3 13:10:49 2012
@@ -518,10 +518,6 @@
   /// getParamAttributes - The attributes for the specified index are
   /// returned.
   Attributes getParamAttributes(unsigned Idx) const {
-    if (Idx == 0)
-      return getRetAttributes();
-    if (Idx == ~0U)
-      return getFnAttributes();
     return getAttributes(Idx);
   }
 





More information about the llvm-commits mailing list