Skip to content

Commit 0883a96

Browse files
committed
UnsafeGuaranteedPeephole: Fix obvious mistake
Caught by ASAN.
1 parent b3e3dbd commit 0883a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Transforms/UnsafeGuaranteedPeephole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static bool removeGuaranteedRetainReleasePairs(SILFunction &F,
291291
UnsafeGuaranteedI->eraseFromParent();
292292

293293
if (RestartAtBeginningOfBlock)
294-
++It = BB.begin();
294+
It = BB.begin();
295295

296296
Changed = true;
297297
}

0 commit comments

Comments
 (0)