mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Make it legal to ask for the type of a specialreg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
21a710a52e
commit
3f083d5de6
@ -260,6 +260,8 @@ int SparcV9RegInfo::getRegType(int unifiedRegNum) const
|
|||||||
return FloatCCRegType;
|
return FloatCCRegType;
|
||||||
else if (unifiedRegNum < (64+32+4+2))
|
else if (unifiedRegNum < (64+32+4+2))
|
||||||
return IntCCRegType;
|
return IntCCRegType;
|
||||||
|
else if (unifiedRegNum < (64+32+4+2+1))
|
||||||
|
return SpecialRegType;
|
||||||
else
|
else
|
||||||
assert(0 && "Invalid unified register number in getRegType");
|
assert(0 && "Invalid unified register number in getRegType");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user