[compiler-rt] e932fe8 - [compiler-rt][Fuzzer] fix windows typo (#84407)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 16:15:26 PST 2024


Author: David CARLIER
Date: 2024-03-08T00:15:22Z
New Revision: e932fe880b69a6cd13b4f29678c7f143540f1999

URL: https://github.com/llvm/llvm-project/commit/e932fe880b69a6cd13b4f29678c7f143540f1999
DIFF: https://github.com/llvm/llvm-project/commit/e932fe880b69a6cd13b4f29678c7f143540f1999.diff

LOG: [compiler-rt][Fuzzer] fix windows typo (#84407)

Added: 
    

Modified: 
    compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
index 0dbcec8b5f2215..db80eb383885e6 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp
@@ -243,7 +243,7 @@ void SetThreadName(std::thread &thread, const std::string &name) {
   HMODULE kbase = GetModuleHandleA("KernelBase.dll");
   proc ThreadNameProc =
       reinterpret_cast<proc>(GetProcAddress(kbase, "SetThreadDescription"));
-  if (proc) {
+  if (ThreadNameProc) {
     std::wstring buf;
     auto sz = MultiByteToWideChar(CP_UTF8, 0, name.data(), -1, nullptr, 0);
     if (sz > 0) {


        


More information about the llvm-commits mailing list