Skip to content

Commit b60ed0b

Browse files
authored
Merge pull request #70254 from gottesmm/pr-4e2c87e5d92ace84cf0b2f5e03f909275217fee8
[region-isolation] Fix asan error.
2 parents b57aeaf + e3c0e67 commit b60ed0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/TransferNonSendable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ bool PartialApplyReachabilityDataflow::isReachable(SILValue value,
482482
return false;
483483

484484
auto genEnd = genStart;
485-
while (genEnd->first == baseValue)
485+
while (genEnd != valueToGenInsts.end() && genEnd->first == baseValue)
486486
++genEnd;
487487

488488
// Walk forward from the beginning of the block to user. If we do not find a

0 commit comments

Comments
 (0)