aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/LiveVariables.cpp
diff options
context:
space:
mode:
authorBalazs Benics <benicsbalazs@gmail.com>2025-09-09 13:23:46 +0200
committerGitHub <noreply@github.com>2025-09-09 11:23:46 +0000
commitbf5ea876ef04e6d34a49cf841f4b881ac9d5b15c (patch)
tree2ed0a45e4d10b4e370e124ebabe7139696c7eb1d /clang/lib/Analysis/LiveVariables.cpp
parent3a767473b7eb1012d495b18fd475ff77f4f8afc2 (diff)
downloadllvm-bf5ea876ef04e6d34a49cf841f4b881ac9d5b15c.zip
llvm-bf5ea876ef04e6d34a49cf841f4b881ac9d5b15c.tar.gz
llvm-bf5ea876ef04e6d34a49cf841f4b881ac9d5b15c.tar.bz2
[analyzer] In LivenessValues::equals also check liveBindings (#157645)
This was likely accidentally omitted when `liveBindings` was introduced. I don't think in practice it matters.
Diffstat (limited to 'clang/lib/Analysis/LiveVariables.cpp')
-rw-r--r--clang/lib/Analysis/LiveVariables.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/LiveVariables.cpp b/clang/lib/Analysis/LiveVariables.cpp
index 375fdb3..db88d4f 100644
--- a/clang/lib/Analysis/LiveVariables.cpp
+++ b/clang/lib/Analysis/LiveVariables.cpp
@@ -128,7 +128,8 @@ LiveVariablesImpl::merge(LiveVariables::LivenessValues valsA,
}
bool LiveVariables::LivenessValues::equals(const LivenessValues &V) const {
- return liveExprs == V.liveExprs && liveDecls == V.liveDecls;
+ return liveExprs == V.liveExprs && liveDecls == V.liveDecls &&
+ liveBindings == V.liveBindings;
}
//===----------------------------------------------------------------------===//