[SemaChecking] Suppress a GCC warning. NFCI.

llvm-svn: 315621
This commit is contained in:
Davide Italiano 2017-10-12 21:08:29 +00:00
parent 4e9e939b4f
commit fe54b50583
1 changed files with 2 additions and 1 deletions

View File

@ -8652,7 +8652,8 @@ bool CheckTautologicalComparison(Sema &S, BinaryOperator *E, Expr *Constant,
bool ConstIsLowerBound = (Op == BO_LT || Op == BO_LE) ^ RhsConstant;
bool ResultWhenConstEqualsOther = (Op == BO_LE || Op == BO_GE);
bool ResultWhenConstNeOther = ConstIsLowerBound ^ ValueType == LimitType::Max;
bool ResultWhenConstNeOther =
ConstIsLowerBound ^ (ValueType == LimitType::Max);
if (ResultWhenConstEqualsOther != ResultWhenConstNeOther)
return false; // The comparison is not tautological.