mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Remove assert that's too restrictive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
847d165459
commit
3bd59a9a06
@ -518,7 +518,10 @@ public:
|
||||
/// getParamAttributes - The attributes for the specified index are
|
||||
/// returned.
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user