summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ
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
commitdf2a6d7985cded301c7a1ab079b685439f4f4ed5 (patch)
treecf4a092edbf0672eb8bedb93cf2cb892dfe6abbe /lib/Target/SystemZ
parente946b0193e91188ec2f994f04407b9f68a64317c (diff)
[SystemZ] Fix bad assert composition.
Use '&&' before the string instead of '||' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338429 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
-rw-r--r--lib/Target/SystemZ/SystemZHazardRecognizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZHazardRecognizer.cpp b/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
index c7dd3581eae..b9e5788cf01 100644
--- a/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
+++ b/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;