mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-09 13:55:22 +00:00
Add more thorough error checking for NULL register classes.
llvm-svn: 46605
This commit is contained in:
parent
d1bed85965
commit
c924dea069
@ -597,10 +597,11 @@ void ScheduleDAG::EmitSubregNode(SDNode *Node,
|
||||
// Grab the destination register
|
||||
const TargetRegisterClass *DRC = 0;
|
||||
DRC = RegInfo.getRegClass(VRBase);
|
||||
assert(SRC == DRC &&
|
||||
assert(SRC && DRC && SRC == DRC &&
|
||||
"Source subregister and destination must have the same class");
|
||||
} else {
|
||||
// Create the reg
|
||||
assert(SRC && "Couldn't find source register class");
|
||||
VRBase = RegInfo.createVirtualRegister(SRC);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user