mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When we are using diagnostic transactions to disable immediate emission of diagnostics, `DiagnosticEngine::hadAnyError()` no longer accurately reports whether an error occurred. Thread the DiagnosticTransaction into the ConstraintSystem so we can also check whether it contains an error before emitting the fallback diagnostic. Fixes rdar://128272346.
87 KiB
87 KiB