File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ SWIFT_NORETURN SWIFT_NOINLINE void
385
385
swift::swift_dynamicCastFailure (const void *sourceType, const char *sourceName,
386
386
const void *targetType, const char *targetName,
387
387
const char *message) {
388
- swift::fatalError (/* flags = */ 0 ,
388
+ swift::fatalError (/* flags = */ 1 ,
389
389
" Could not cast value of type '%s' (%p) to '%s' (%p)%s%s\n " ,
390
390
sourceName, sourceType,
391
391
targetName, targetType,
Original file line number Diff line number Diff line change @@ -400,6 +400,7 @@ bool swift::_swift_shouldReportFatalErrorsToDebugger() {
400
400
// / Does not crash by itself.
401
401
void swift::swift_reportError (uint32_t flags,
402
402
const char *message) {
403
+ #if 0
403
404
#if defined(__APPLE__) && NDEBUG
404
405
flags &= ~FatalErrorFlags::ReportBacktrace;
405
406
#elif SWIFT_ENABLE_BACKTRACING
@@ -408,7 +409,8 @@ void swift::swift_reportError(uint32_t flags,
408
409
flags &= ~FatalErrorFlags::ReportBacktrace;
409
410
}
410
411
#endif
411
-
412
+ #endif
413
+
412
414
reportNow (flags, message);
413
415
reportOnCrash (flags, message);
414
416
}
You can’t perform that action at this time.
0 commit comments