I had a problem with one SDK where dispatch_release was actually a
authorJason Molenda <jmolenda@apple.com>
Thu, 8 Sep 2016 02:29:40 +0000 (02:29 +0000)
committerJason Molenda <jmolenda@apple.com>
Thu, 8 Sep 2016 02:29:40 +0000 (02:29 +0000)
macro, so writing ::dispatch_release did not work as expected.
Remove the global anon namespace :: designation; the header will
get us the correct declaration.

llvm-svn: 280903

lldb/source/Host/macosx/Host.mm

index 01231ce..c1b8f6e 100644 (file)
@@ -1410,7 +1410,7 @@ HostThread Host::StartMonitoringChildProcess(
   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, ^{