From 76f50f48a1cf3fc9702b5615da21d44f81b35c2d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 3 Oct 2012 18:10:49 +0000 Subject: No need to call functions which do the same thing as the default. llvm-svn: 165135 --- llvm/include/llvm/Attributes.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/include') diff --git a/llvm/include/llvm/Attributes.h b/llvm/include/llvm/Attributes.h index 381aedf9570..29700cbaf62 100644 --- a/llvm/include/llvm/Attributes.h +++ b/llvm/include/llvm/Attributes.h @@ -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); } -- cgit v1.2.3