[-Wunreachable-code] generalize configuration value checking to all comparison operators.
llvm-svn: 203016
This commit is contained in:
@@ -382,7 +382,7 @@ static bool isConfigurationValue(const Stmt *S) {
|
||||
return true;
|
||||
case Stmt::BinaryOperatorClass: {
|
||||
const BinaryOperator *B = cast<BinaryOperator>(S);
|
||||
return (B->isLogicalOp() || B->isRelationalOp()) &&
|
||||
return (B->isLogicalOp() || B->isComparisonOp()) &&
|
||||
(isConfigurationValue(B->getLHS()) ||
|
||||
isConfigurationValue(B->getRHS()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user