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.

llvm-svn: 280903
This commit is contained in:
Jason Molenda 2016-09-08 02:29:40 +00:00
parent f81f15a706
commit 2e819ccc41

View 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, ^{