[llvm] r338429 - [SystemZ] Fix bad assert composition.

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 12:58:42 PDT 2018


Author: jonpa
Date: Tue Jul 31 12:58:42 2018
New Revision: 338429

URL: http://llvm.org/viewvc/llvm-project?rev=338429&view=rev
Log:
[SystemZ]  Fix bad assert composition.

Use '&&' before the string instead of '||'

Modified:
    llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp

Modified: llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp?rev=338429&r1=338428&r2=338429&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp Tue Jul 31 12:58:42 2018
@@ -101,7 +101,7 @@ SystemZHazardRecognizer::fitsIntoCurrent
     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;




More information about the llvm-commits mailing list