1
0
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:
Craig Topper 2016-04-24 02:01:25 +00:00
parent 917b9d7a47
commit ff7f9dafdb
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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 << ')';
}