Skip to content

Commit 535e062

Browse files
committed
up
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
1 parent 747cbaa commit 535e062

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/lib/DPCT/ExtReplacements.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ void ExtReplacements::markAsDead(std::shared_ptr<ExtReplacement> Repl) {
309309
if (auto PairID = Repl->getPairID()) {
310310
if (auto &R = PairReplsMap[PairID]) {
311311
R->Status = PairReplsStatus::Dead;
312-
auto beginIter = ReplMap.lower_bound(R->Repl->getOffset());
313-
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);
312+
auto BeginIter = ReplMap.lower_bound(R->Repl->getOffset());
313+
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);
317317
break;
318318
}
319319
}

0 commit comments

Comments
 (0)