Make it legal to ask for the type of a specialreg

llvm-svn: 13078
This commit is contained in:
Brian Gaeke 2004-04-20 20:12:57 +00:00
parent 86a6c75a7e
commit a2f66db6c4
1 changed files with 2 additions and 0 deletions

View File

@ -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;