summaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Checkers
diff options
context:
space:
mode:
authorAdam Balogh <adam.balogh@ericsson.com>2019-04-23 07:45:10 +0000
committerAdam Balogh <adam.balogh@ericsson.com>2019-04-23 07:45:10 +0000
commiteb72871e0572587b9ab80c8abbb2845888f6b651 (patch)
treeb1e7cca42f0fdc269d35c530990b6cd38f282078 /lib/StaticAnalyzer/Checkers
parent70be40fb9467d3941d1a37a7f9dbb638c2e7d2dd (diff)
downloadclang-eb72871e0572587b9ab80c8abbb2845888f6b651.tar.gz
[Analyzer] Fix for previous commit
A compilation warning was in my previous commit which broke the buildbot because it is using `-Werror` for compilation. This patch fixes this issue. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers')
-rw-r--r--lib/StaticAnalyzer/Checkers/IteratorChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp b/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
index d0d304cc5e..e35bc2768a 100644
--- a/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
+++ b/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
@@ -848,9 +848,9 @@ void IteratorChecker::processComparison(CheckerContext &C,
SymbolRef Sym2, const SVal &RetVal,
OverloadedOperatorKind Op) const {
if (const auto TruthVal = RetVal.getAs<nonloc::ConcreteInt>()) {
- if (State = relateSymbols(State, Sym1, Sym2,
+ if ((State = relateSymbols(State, Sym1, Sym2,
(Op == OO_EqualEqual) ==
- (TruthVal->getValue() != 0))) {
+ (TruthVal->getValue() != 0)))) {
C.addTransition(State);
} else {
C.generateSink(State, C.getPredecessor());