Skip to content

Commit 99e2c13

Browse files
committed
[analyzer] In LivenessValues::equals also check liveBindings
This was likely accidentally omitted when `liveBindings` was introduced. I don't think in practice it matters.
1 parent 57a7907 commit 99e2c13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Analysis/LiveVariables.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ LiveVariablesImpl::merge(LiveVariables::LivenessValues valsA,
128128
}
129129

130130
bool LiveVariables::LivenessValues::equals(const LivenessValues &V) const {
131-
return liveExprs == V.liveExprs && liveDecls == V.liveDecls;
131+
return liveExprs == V.liveExprs && liveDecls == V.liveDecls &&
132+
liveBindings == V.liveBindings;
132133
}
133134

134135
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)