Make it legal to ask for the type of a specialreg
llvm-svn: 13078
This commit is contained in:
parent
86a6c75a7e
commit
a2f66db6c4
|
@ -260,6 +260,8 @@ int SparcV9RegInfo::getRegType(int unifiedRegNum) const
|
|||
return FloatCCRegType;
|
||||
else if (unifiedRegNum < (64+32+4+2))
|
||||
return IntCCRegType;
|
||||
else if (unifiedRegNum < (64+32+4+2+1))
|
||||
return SpecialRegType;
|
||||
else
|
||||
assert(0 && "Invalid unified register number in getRegType");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue