mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 03:28:35 +00:00
Check register classes also when changing them.
We have the same assertion in createVirtualRegister. llvm-svn: 176959
This commit is contained in:
parent
3294ca42bf
commit
e1dec0ef60
@ -37,6 +37,7 @@ MachineRegisterInfo::~MachineRegisterInfo() {
|
||||
///
|
||||
void
|
||||
MachineRegisterInfo::setRegClass(unsigned Reg, const TargetRegisterClass *RC) {
|
||||
assert(RC && RC->isAllocatable() && "Invalid RC for virtual register");
|
||||
VRegInfo[Reg].first = RC;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user