forked from OSchip/llvm-project
[SemaChecking] Suppress a GCC warning. NFCI.
llvm-svn: 315621
This commit is contained in:
parent
4e9e939b4f
commit
fe54b50583
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue