mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Better assertion messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
29a05b6a71
commit
5db322acef
@ -110,7 +110,7 @@ void RegScavenger::forward() {
|
||||
if (!isUsed(Reg)) {
|
||||
// Register has been scavenged. Restore it!
|
||||
if (Reg != ScavengedReg)
|
||||
assert(false);
|
||||
assert(false && "Using an undefined register!");
|
||||
else
|
||||
restoreScavengedReg();
|
||||
}
|
||||
@ -135,10 +135,11 @@ void RegScavenger::forward() {
|
||||
}
|
||||
// Skip two-address destination operand.
|
||||
if (TID->findTiedToSrcOperand(i) != -1) {
|
||||
assert(isUsed(Reg));
|
||||
assert(isUsed(Reg) && "Using an undefined register!");
|
||||
continue;
|
||||
}
|
||||
assert(isUnused(Reg) || isReserved(Reg));
|
||||
assert((isUnused(Reg) || isReserved(Reg)) &&
|
||||
"Re-defining a live register!");
|
||||
setUsed(Reg);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user