summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-07-31 19:58:42 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-07-31 19:58:42 +0000
commit590b1fc881ba24f9bf1610a1676eba831a77a5c2 (patch)
tree7c933d1ecae9b2a48886567ac5ce85cdb3ae8129
parentdcec0888e2c94af5090c20e339ae4636c9915174 (diff)
downloadbcm5719-llvm-590b1fc881ba24f9bf1610a1676eba831a77a5c2.tar.gz
bcm5719-llvm-590b1fc881ba24f9bf1610a1676eba831a77a5c2.zip
[SystemZ] Fix bad assert composition.
Use '&&' before the string instead of '||' llvm-svn: 338429
-rw-r--r--llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
index c7dd3581eae..b9e5788cf01 100644
--- a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
@@ -101,7 +101,7 @@ SystemZHazardRecognizer::fitsIntoCurrentGroup(SUnit *SU) const {
return (CurrGroupSize == 0);
// An instruction with 4 register operands will not fit in last slot.
- assert ((CurrGroupSize < 2 || !CurrGroupHas4RegOps) ||
+ assert ((CurrGroupSize < 2 || !CurrGroupHas4RegOps) &&
"Current decoder group is already full!");
if (CurrGroupSize == 2 && has4RegOps(SU->getInstr()))
return false;
OpenPOWER on IntegriCloud