Remove assert that's too restrictive.

llvm-svn: 165134
This commit is contained in:
Bill Wendling 2012-10-03 18:08:57 +00:00
parent 4a67508685
commit eef9b8a1b5
1 changed files with 4 additions and 1 deletions

View File

@ -518,7 +518,10 @@ public:
/// getParamAttributes - The attributes for the specified index are /// getParamAttributes - The attributes for the specified index are
/// returned. /// returned.
Attributes getParamAttributes(unsigned Idx) const { Attributes getParamAttributes(unsigned Idx) const {
assert (Idx && Idx != ~0U && "Invalid parameter index!"); if (Idx == 0)
return getRetAttributes();
if (Idx == ~0U)
return getFnAttributes();
return getAttributes(Idx); return getAttributes(Idx);
} }