Skip to content

Commit c77348c

Browse files
authored
Merge pull request #40537 from gottesmm/pr-f9e41dbeaf70e51f0323e797f04555891fe3340f
[move-function] After emitting an error for a move [allows_diagnostic], remove allows_diagnostic flag.
2 parents cb17173 + 954c238 commit c77348c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/Mandatory/MoveKillsCopyableValuesChecker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ class MoveKillsCopyableValuesCheckerPass : public SILFunctionTransform {
458458
auto diag = diag::
459459
sil_movekillscopyablevalue_move_applied_to_unsupported_move;
460460
diagnose(astContext, mvi->getLoc().getSourceLoc(), diag);
461+
mvi->setAllowsDiagnostics(false);
461462
}
462463
}
463464
}

0 commit comments

Comments
 (0)