diff options
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/comparisonwithconstant.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/comparisonwithconstant.cxx b/compilerplugins/clang/comparisonwithconstant.cxx index c0fe91f9508c..cf721a83c4e3 100644 --- a/compilerplugins/clang/comparisonwithconstant.cxx +++ b/compilerplugins/clang/comparisonwithconstant.cxx @@ -58,10 +58,10 @@ bool ComparisonWithConstant::VisitBinaryOperator(const BinaryOperator* binaryOp) return true; } APValue result; - if (!binaryOp->getLHS()->isIntegerConstantExpr(compiler.getASTContext())) { + if (!binaryOp->getLHS()->isEvaluatable(compiler.getASTContext())) { return true; } - if (binaryOp->getRHS()->isIntegerConstantExpr(compiler.getASTContext())) { + if (binaryOp->getRHS()->isEvaluatable(compiler.getASTContext())) { return true; } if (!rewrite(binaryOp)) |