Skip to content

Commit 954c238

Browse files
committed
[move-function] After emitting an error for a move [allows_diagnostic], remove allows_diagnostic flag.
Just a small thing I noticed.
1 parent 186713e commit 954c238

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)