File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1865,7 +1865,7 @@ void ASTContext::addCleanup(std::function<void(void)> cleanup) {
1865
1865
}
1866
1866
1867
1867
bool ASTContext::hadError () const {
1868
- return Diags.hadAnyError ();
1868
+ return Diags.hadAnyError () || hasDelayedConformanceErrors () ;
1869
1869
}
1870
1870
1871
1871
// / Retrieve the arena from which we should allocate storage for a type.
Original file line number Diff line number Diff line change @@ -7235,7 +7235,7 @@ void ConstraintSystem::maybeProduceFallbackDiagnostic(
7235
7235
// diagnostics already emitted or waiting to be emitted. Because they are
7236
7236
// a better indication of the problem.
7237
7237
ASTContext &ctx = getASTContext ();
7238
- if (ctx.Diags . hadAnyError () || ctx. hasDelayedConformanceErrors ())
7238
+ if (ctx.hadError ())
7239
7239
return ;
7240
7240
7241
7241
ctx.Diags .diagnose (target.getLoc (), diag::failed_to_produce_diagnostic);
You can’t perform that action at this time.
0 commit comments