mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[APIDigester] Provide a category when serializing diagnostics representing API or ABI breakage
This commit is contained in:
@@ -1973,9 +1973,10 @@ int swift::performFrontend(ArrayRef<const char *> Args,
|
||||
DiagnosticInfo errorInfo(
|
||||
DiagID(0), SourceLoc(), DiagnosticKind::Error,
|
||||
"fatal error encountered during compilation; " SWIFT_BUG_REPORT_MESSAGE,
|
||||
{}, SourceLoc(), {}, {}, {}, false);
|
||||
{}, StringRef(), SourceLoc(), {}, {}, {}, false);
|
||||
DiagnosticInfo noteInfo(DiagID(0), SourceLoc(), DiagnosticKind::Note,
|
||||
reason, {}, SourceLoc(), {}, {}, {}, false);
|
||||
reason, {}, StringRef(), SourceLoc(), {}, {}, {},
|
||||
false);
|
||||
PDC.handleDiagnostic(dummyMgr, errorInfo);
|
||||
PDC.handleDiagnostic(dummyMgr, noteInfo);
|
||||
if (shouldCrash)
|
||||
|
||||
Reference in New Issue
Block a user