Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang/include/clang/Analysis/Analyses/LiveVariables.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class LiveVariables : public ManagedAnalysis {
llvm::ImmutableSet<const VarDecl *> liveDecls;
llvm::ImmutableSet<const BindingDecl *> liveBindings;

bool equals(const LivenessValues &V) const;
bool operator==(const LivenessValues &V) const;

LivenessValues()
: liveExprs(nullptr), liveDecls(nullptr), liveBindings(nullptr) {}
Expand Down
4 changes: 2 additions & 2 deletions clang/lib/Analysis/LiveVariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ LiveVariablesImpl::merge(LiveVariables::LivenessValues valsA,
BSetRefA.asImmutableSet());
}

bool LiveVariables::LivenessValues::equals(const LivenessValues &V) const {
bool LiveVariables::LivenessValues::operator==(const LivenessValues &V) const {
return liveExprs == V.liveExprs && liveDecls == V.liveDecls &&
liveBindings == V.liveBindings;
}
Expand Down Expand Up @@ -598,7 +598,7 @@ LiveVariables::computeLiveness(AnalysisDeclContext &AC, bool killAtAssign) {

if (!everAnalyzedBlock[block->getBlockID()])
everAnalyzedBlock[block->getBlockID()] = true;
else if (prevVal.equals(val))
else if (prevVal == val)
continue;

prevVal = val;
Expand Down