[compiler-rt] [compiler-rt] reimplements GetMemoryProfile for netbsd. (PR #84841)

David CARLIER via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 21:09:56 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()));
----------------
devnexen wrote:

it is, but it does not build w/o it.

https://github.com/llvm/llvm-project/pull/84841


More information about the llvm-commits mailing list