Skip to content

Commit 209ea4c

Browse files
committed
Update comments
1 parent 618e639 commit 209ea4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/ProfileData/Coverage/CoverageMapping.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ Counter CounterExpressionBuilder::subtract(Counter LHS, Counter RHS,
138138
Counter CounterExpressionBuilder::replace(Counter C, const ReplaceMap &Map) {
139139
auto I = Map.find(C);
140140

141-
// Replace C with the Map even if C is Expression.
141+
// Replace C with the value found in Map even if C is Expression.
142142
if (I != Map.end())
143143
return I->second;
144144

145-
// Traverse only Expression.
146145
if (!C.isExpression())
147146
return C;
148147

148+
// Traverse both sides of Expression.
149149
auto CE = Expressions[C.getExpressionID()];
150150
auto NewLHS = replace(CE.LHS, Map);
151151
auto NewRHS = replace(CE.RHS, Map);

0 commit comments

Comments
 (0)