summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-16 19:44:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-16 19:44:25 +0200
commit133d06baefc5e36ae3b5a1713c3fded26cdabe2f (patch)
treed2a50918b6a9e8148364f8f49f91d9db4db9c978 /compilerplugins
parent9c613898532510c85a118f3081bfc06cf6572683 (diff)
Remove unused var
Change-Id: Id0266ad01eaabf2d9555e99f4a4c1c2300bb8be7
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/comparisonwithconstant.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/compilerplugins/clang/comparisonwithconstant.cxx b/compilerplugins/clang/comparisonwithconstant.cxx
index cf721a83c4e3..8decc5c475cc 100644
--- a/compilerplugins/clang/comparisonwithconstant.cxx
+++ b/compilerplugins/clang/comparisonwithconstant.cxx
@@ -57,7 +57,6 @@ bool ComparisonWithConstant::VisitBinaryOperator(const BinaryOperator* binaryOp)
if (binaryOp->getLHS()->isValueDependent() || binaryOp->getRHS()->isValueDependent()) {
return true;
}
- APValue result;
if (!binaryOp->getLHS()->isEvaluatable(compiler.getASTContext())) {
return true;
}