Merge pull request #83776 from hamishknight/the-diags-never-stop-no

[Diags] Allow multiple in-flight diagnostics
This commit is contained in:
Hamish Knight
2025-09-03 19:59:44 +01:00
committed by GitHub
27 changed files with 150 additions and 139 deletions

View File

@@ -255,9 +255,7 @@ ModularizationError::diagnose(const ModuleFile *MF,
llvm_unreachable("Unhandled ModularizationError::Kind in switch.");
};
auto inFlight = diagnoseError(errorKind);
inFlight.limitBehavior(limit);
inFlight.flush();
diagnoseError(errorKind).limitBehavior(limit);
// We could pass along the `path` information through notes.
// However, for a top-level decl a path would just duplicate the