mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
We've had several bugs lately where SILGen produces a diagnostic, but the resulting invalid SIL causes crashes further down in the mandatory pipeline. To prevent this from happening, just stop after SILGen if diagnostics were emitted, even if lazy type checking is disabled, because the same rationale applies in either case.