[Lldb-commits] [PATCH] SBHostOS: Fix a pointer-to-function to void-pointer cast

David Majnemer david.majnemer at gmail.com
Tue Jul 22 15:08:59 PDT 2014


Closed by commit rL213692 (authored by @majnemer).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4624

Files:
  lldb/trunk/source/API/SBHostOS.cpp

Index: lldb/trunk/source/API/SBHostOS.cpp
===================================================================
--- lldb/trunk/source/API/SBHostOS.cpp
+++ lldb/trunk/source/API/SBHostOS.cpp
@@ -51,7 +51,7 @@
 
     if (log)
         log->Printf ("SBHostOS::ThreadCreate (name=\"%s\", thread_function=%p, thread_arg=%p, error_ptr=%p)",
-                     name, reinterpret_cast<void*>(thread_function),
+                     name, reinterpret_cast<void*>(reinterpret_cast<intptr_t>(thread_function)),
                      static_cast<void*>(thread_arg),
                      static_cast<void*>(error_ptr));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4624.11789.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140722/c913c7ad/attachment.bin>


More information about the lldb-commits mailing list