Skip to content

Commit b32dc67

Browse files
committed
Revert "[compiler-rt][fuzzer] SetThreadName build fix for Mingwin attempt (llvm#106902)"
This reverts commit 7c4cffd. This commit broke compilation in environments that don't use winpthreads.
1 parent 8b2ad5c commit b32dc67

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ size_t PageSize() {
239239
}
240240

241241
void SetThreadName(std::thread &thread, const std::string &name) {
242-
#if !defined(__MINGW32__)
243242
typedef HRESULT(WINAPI * proc)(HANDLE, PCWSTR);
244243
HMODULE kbase = GetModuleHandleA("KernelBase.dll");
245244
proc ThreadNameProc = reinterpret_cast<proc>(
@@ -254,9 +253,6 @@ void SetThreadName(std::thread &thread, const std::string &name) {
254253
}
255254
}
256255
}
257-
#else
258-
(void)pthread_setname_np(thread.native_handle(), name.c_str());
259-
#endif
260256
}
261257

262258
} // namespace fuzzer

0 commit comments

Comments
 (0)