Skip to content

Commit dd6490b

Browse files
committed
up
Signed-off-by: Chen, Sheng S <[email protected]>
1 parent 535e062 commit dd6490b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/DPCT/ExtReplacements.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ void ExtReplacements::markAsDead(std::shared_ptr<ExtReplacement> Repl) {
311311
R->Status = PairReplsStatus::Dead;
312312
auto BeginIter = ReplMap.lower_bound(R->Repl->getOffset());
313313
auto EndIter = ReplMap.upper_bound(R->Repl->getOffset());
314-
for (auto start = BeginIter; start != EndIter; start++) {
315-
if (*BeginIter->second == *R->Repl) {
316-
ReplMap.erase(BeginIter);
314+
for (auto Start = BeginIter; Start != EndIter; Start++) {
315+
if (*Start->second == *R->Repl) {
316+
ReplMap.erase(Start);
317317
break;
318318
}
319319
}

0 commit comments

Comments
 (0)