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:
Craig Topper 2016-04-24 02:01:25 +00:00
parent 51bf4a5e45
commit 2ea0a37593
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 << ')';
}