diff --git a/lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp index a69c10081ff190..a0d0f0ea0abc80 100644 --- a/lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp @@ -179,9 +179,10 @@ const char *TargetThreadWindows::GetName() { Log *log = GetLog(LLDBLog::Thread); static GetThreadDescriptionFunctionPtr GetThreadDescription = []() { HMODULE hModule = ::LoadLibraryW(L"Kernel32.dll"); - return hModule ? reinterpret_cast( - ::GetProcAddress(hModule, "GetThreadDescription")) - : nullptr; + return hModule + ? reinterpret_cast( + (void *)::GetProcAddress(hModule, "GetThreadDescription")) + : nullptr; }(); LLDB_LOGF(log, "GetProcAddress: %p", reinterpret_cast(GetThreadDescription));