Skip to content

Commit ee607ed

Browse files
committed
[debugserver] Call posix_spawnattr_setarchpref_np throught the fn ptr.
Fourth time is the charm? Of course all of these issues don't show up when the function is available...
1 parent 452eddf commit ee607ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/tools/debugserver/source/MacOSX/MachProcess.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3279,8 +3279,8 @@ typedef int (*posix_spawnattr_setarchpref_np_t)(
32793279
(posix_spawnattr_setarchpref_np_t)dlsym(
32803280
RTLD_DEFAULT, "posix_spawnattr_setarchpref_np");
32813281
if (posix_spawnattr_setarchpref_np_fn) {
3282-
err.SetError((*posix_spawnattr_setarchpref_np)(&attr, 1, &cpu_type,
3283-
&cpu_subtype, &ocount));
3282+
err.SetError((*posix_spawnattr_setarchpref_np_fn)(
3283+
&attr, 1, &cpu_type, &cpu_subtype, &ocount));
32843284
slice_preference_set = err.Success();
32853285
if (err.Fail() || DNBLogCheckLogBit(LOG_PROCESS))
32863286
err.LogThreaded(

0 commit comments

Comments
 (0)