mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01: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.
llvm-svn: 267312
This commit is contained in:
parent
917b9d7a47
commit
ff7f9dafdb
@ -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…
Reference in New Issue
Block a user