Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2025-09-03 12:20:00 -07:00
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