add an assertion

llvm-svn: 19290
This commit is contained in:
Chris Lattner 2005-01-05 16:27:34 +00:00
parent 0f7e786a6b
commit a0d572707a
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class SSARegMap {
/// function with the specified register class.
///
unsigned createVirtualRegister(const TargetRegisterClass *RegClass) {
assert(RegClass && "Cannot create register without RegClass!");
RegClassMap.grow(NextRegNum);
RegClassMap[NextRegNum] = RegClass;
return NextRegNum++;