OSDN Git Service

[SystemZ] Fix bad assert composition.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 31 Jul 2018 19:58:42 +0000 (19:58 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 31 Jul 2018 19:58:42 +0000 (19:58 +0000)
Use '&&' before the string instead of '||'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338429 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZHazardRecognizer.cpp

index c7dd358..b9e5788 100644 (file)
@@ -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;