Skip to content

Commit e3c0e67

Browse files
committed
[region-isolation] Fix asan error.
1 parent db8ca19 commit e3c0e67

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)