No need to call functions which do the same thing as the default.
authorBill Wendling <isanbard@gmail.com>
Wed, 3 Oct 2012 18:10:49 +0000 (18:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 3 Oct 2012 18:10:49 +0000 (18:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165135 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Attributes.h

index 381aedf9570c68616be3e9c67c83226079ed400e..29700cbaf628859c692cbebc97f22194d8112bdd 100644 (file)
@@ -518,10 +518,6 @@ public:
   /// 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);
   }