aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-04-24 02:01:25 +0000
committerCraig Topper <craig.topper@gmail.com>2016-04-24 02:01:25 +0000
commit855d1826562d0263f6977c15d3567377a0851e17 (patch)
treeae7f1c9eb76eb9cd3905374a1f4c54d606f35d11 /llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
parent601b6c69bc47bb66bb1e3193656562b985050801 (diff)
downloadllvm-855d1826562d0263f6977c15d3567377a0851e17.zip
llvm-855d1826562d0263f6977c15d3567377a0851e17.tar.gz
llvm-855d1826562d0263f6977c15d3567377a0851e17.tar.bz2
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/Target/AMDGPU/SIMachineScheduler.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp b/llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
index 5ef12e7..87437b4 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
}