diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-04-24 02:01:25 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-04-24 02:01:25 +0000 |
commit | 855d1826562d0263f6977c15d3567377a0851e17 (patch) | |
tree | ae7f1c9eb76eb9cd3905374a1f4c54d606f35d11 /llvm/lib | |
parent | 601b6c69bc47bb66bb1e3193656562b985050801 (diff) | |
download | bcm5719-llvm-855d1826562d0263f6977c15d3567377a0851e17.tar.gz bcm5719-llvm-855d1826562d0263f6977c15d3567377a0851e17.zip |
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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp b/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp index 5ef12e7f5ea..87437b4c3b2 100644 --- a/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp +++ b/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp @@ -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 } diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp index 06ccec53221..7b3c016b3ac 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp @@ -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 << ')'; } |