From: Jonas Paulsson Date: Tue, 31 Jul 2018 19:58:42 +0000 (+0000) Subject: [SystemZ] Fix bad assert composition. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df2a6d7985cded301c7a1ab079b685439f4f4ed5;p=llvm [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 --- 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;