File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -703,6 +703,7 @@ class UseAfterTransferDiagnosticEmitter {
703
703
ApplyIsolationCrossing isolationCrossing) {
704
704
diagnoseError (loc, diag::regionbasedisolation_type_transfer_yields_race,
705
705
inferredType)
706
+ .highlight (loc.getSourceRange ())
706
707
.limitBehaviorIf (getBehaviorLimit ());
707
708
708
709
if (auto calleeInfo = getTransferringCalleeInfo ()) {
@@ -741,6 +742,7 @@ class UseAfterTransferDiagnosticEmitter {
741
742
Type inferredType) {
742
743
diagnoseError (loc, diag::regionbasedisolation_type_transfer_yields_race,
743
744
inferredType)
745
+ .highlight (loc.getSourceRange ())
744
746
.limitBehaviorIf (getBehaviorLimit ());
745
747
if (auto calleeInfo = getTransferringCalleeInfo ()) {
746
748
diagnoseNote (loc,
@@ -785,6 +787,7 @@ class UseAfterTransferDiagnosticEmitter {
785
787
ApplyIsolationCrossing isolationCrossing) {
786
788
diagnoseError (loc, diag::regionbasedisolation_type_transfer_yields_race,
787
789
inferredType)
790
+ .highlight (loc.getSourceRange ())
788
791
.limitBehaviorIf (getBehaviorLimit ());
789
792
diagnoseNote (loc,
790
793
diag::regionbasedisolation_type_isolated_capture_yields_race,
You can’t perform that action at this time.
0 commit comments