diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index 381aedf9570..29700cbaf62 100644 --- a/include/llvm/Attributes.h +++ b/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); }