[Lldb-commits] [lldb] r280903 - I had a problem with one SDK where dispatch_release was actually a

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 7 19:29:40 PDT 2016


Author: jmolenda
Date: Wed Sep  7 21:29:40 2016
New Revision: 280903

URL: http://llvm.org/viewvc/llvm-project?rev=280903&view=rev
Log:
I had a problem with one SDK where dispatch_release was actually a
macro, so writing ::dispatch_release did not work as expected.
Remove the global anon namespace :: designation; the header will
get us the correct declaration.

Modified:
    lldb/trunk/source/Host/macosx/Host.mm

Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=280903&r1=280902&r2=280903&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Wed Sep  7 21:29:40 2016
@@ -1410,7 +1410,7 @@ HostThread Host::StartMonitoringChildPro
   if (source) {
     Host::MonitorChildProcessCallback callback_copy = callback;
     ::dispatch_source_set_cancel_handler(source, ^{
-      ::dispatch_release(source);
+      dispatch_release(source);
     });
     ::dispatch_source_set_event_handler(source, ^{
 




More information about the lldb-commits mailing list