mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 09:37:20 +00:00
Fix a couple assertions that can never fire because they just contained the text string which always evaluates to true. Add a ! so they'll evaluate to false.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51bf4a5e45
commit
2ea0a37593
@ -544,7 +544,7 @@ void SIScheduleBlock::addSucc(SIScheduleBlock *Succ) {
|
||||
#ifndef NDEBUG
|
||||
for (SIScheduleBlock* P : Preds) {
|
||||
if (SuccID == P->getID())
|
||||
assert("Loop in the Block Graph!\n");
|
||||
assert(!"Loop in the Block Graph!\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ void HexagonInstPrinter::printSymbol(MCInst const *MI, unsigned OpNo,
|
||||
printOperand(MI, OpNo, O);
|
||||
} else {
|
||||
printOperand(MI, OpNo, O);
|
||||
assert("Unknown symbol operand");
|
||||
assert(!"Unknown symbol operand");
|
||||
}
|
||||
O << ')';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user