[move-only] Integrate BorrowToDestructureTransform into the AddressChecker so we handle load [copy] switch_enum.

This commit is contained in:
Michael Gottesman
2023-02-07 14:26:54 -08:00
parent f4877645b8
commit e70a7228cc
7 changed files with 87 additions and 20 deletions

View File

@@ -102,6 +102,7 @@ void DiagnosticEmitter::emitCheckerDoesntUnderstandDiagnostic(
diag::sil_moveonlychecker_not_understand_moveonly);
}
registerDiagnosticEmitted(markedValue);
emittedCheckerDoesntUnderstandDiagnostic = true;
}
//===----------------------------------------------------------------------===//