forked from OSchip/llvm-project
Give better scavenger errors by invoking the verifier.
llvm-svn: 148251
This commit is contained in:
parent
374ed322f2
commit
6de6d3e4ec
|
@ -205,7 +205,12 @@ void RegScavenger::forward() {
|
|||
SubUsed = true;
|
||||
break;
|
||||
}
|
||||
assert(SubUsed && "Using an undefined register!");
|
||||
#ifndef NDEBUG
|
||||
if (!SubUsed) {
|
||||
MBB->getParent()->verify(NULL, "In Register Scavenger");
|
||||
llvm_unreachable("Using an undefined register!");
|
||||
}
|
||||
#endif
|
||||
(void)SubUsed;
|
||||
}
|
||||
assert((!EarlyClobberRegs.test(Reg) || MI->isRegTiedToDefOperand(i)) &&
|
||||
|
|
Loading…
Reference in New Issue