mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #83776 from hamishknight/the-diags-never-stop-no
[Diags] Allow multiple in-flight diagnostics
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user