Skip to content

[compiler-rt][Fuzzer] fix windows typo #84407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Mar 8, 2024

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Mar 8, 2024

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: David CARLIER (devnexen)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/84407.diff

1 Files Affected:

  • (modified) compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp (+1-1)
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) {

@devnexen devnexen merged commit e932fe8 into llvm:main Mar 8, 2024
Zentrik added a commit to Zentrik/llvm-project that referenced this pull request Aug 30, 2024
Zentrik added a commit to Zentrik/llvm-project that referenced this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants