We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1f86bd + 269565c commit ce20250Copy full SHA for ce20250
stdlib/public/runtime/Errors.cpp
@@ -313,7 +313,8 @@ reportOnCrash(uint32_t flags, const char *message)
313
else
314
current = ::strdup(message);
315
} while (!std::atomic_compare_exchange_strong_explicit(&kFatalErrorMessage,
316
- &previous, current,
+ &previous,
317
+ static_cast<const char *>(current),
318
std::memory_order_release,
319
SWIFT_MEMORY_ORDER_CONSUME));
320
#endif // SWIFT_HAVE_CRASHREPORTERCLIENT
0 commit comments