mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Add whether allowing errors to the pretty stack output
It's currently not obvious in crash reports whether compiling with errors is enabled or not. Since this option can make previously "impossible" paths now possible, add a message to both the pretty stack output and fatal deserialization diagnostics to point out that it is enabled.
This commit is contained in:
@@ -2046,6 +2046,11 @@ int swift::performFrontend(ArrayRef<const char *> Args,
|
||||
return finishDiagProcessing(1, /*verifierEnabled*/ false);
|
||||
}
|
||||
|
||||
Optional<llvm::PrettyStackTraceString> allowErrorsStackTrace;
|
||||
if (Invocation.getFrontendOptions().AllowModuleWithCompilerErrors)
|
||||
allowErrorsStackTrace.emplace("While allowing modules with compiler errors "
|
||||
"enabled");
|
||||
|
||||
// Make an array of PrettyStackTrace objects to dump the configuration files
|
||||
// we used to parse the arguments. These are RAII objects, so they and the
|
||||
// buffers they refer to must be kept alive in order to be useful. (That is,
|
||||
|
||||
Reference in New Issue
Block a user