mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Give better scavenger errors by invoking the verifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7739cad69d
commit
63c6672423
@ -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
Block a user