[compiler-rt] [compiler-rt] reimplements GetMemoryProfile for netbsd. (PR #84841)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 16:20:37 PDT 2024
================
@@ -44,7 +44,7 @@ void SetThreadName(std::thread &thread, const std::string &name) {
#if LIBFUZZER_LINUX || LIBFUZZER_FREEBSD
(void)pthread_setname_np(thread.native_handle(), name.c_str());
#elif LIBFUZZER_NETBSD
- (void)pthread_set_name_np(thread.native_handle(), "%s", name.c_str());
+ (void)pthread_setname_np(thread.native_handle(), "%s", const_cast<char *>(name.c_str()));
----------------
vitalybuka wrote:
looks unrelated
https://github.com/llvm/llvm-project/pull/84841
More information about the llvm-commits
mailing list