Skip to content

Commit c4d7c42

Browse files
committed
[LLDB][Darwin] Clarify which API call enables memory tagging
1 parent 1cec6be commit c4d7c42

File tree

1 file changed

+4
-5
lines changed
  • lldb/source/Host/macosx/objcxx

1 file changed

+4
-5
lines changed

lldb/source/Host/macosx/objcxx/Host.mm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,13 +1221,12 @@ static Status LaunchProcessPosixSpawn(const char *exe_path,
12211221
//
12221222
using posix_spawnattr_set_use_sec_transition_shims_np_t =
12231223
int (*)(posix_spawnattr_t *attr, uint32_t flags);
1224-
auto posix_spawnattr_set_use_sec_transition_shims_np_fn =
1224+
auto posix_spawnattr_enable_memory_tagging_fn =
12251225
(posix_spawnattr_set_use_sec_transition_shims_np_t)dlsym(
12261226
RTLD_DEFAULT, "posix_spawnattr_set_use_sec_transition_shims_np");
1227-
if (posix_spawnattr_set_use_sec_transition_shims_np_fn) {
1228-
error =
1229-
Status(posix_spawnattr_set_use_sec_transition_shims_np_fn(&attr, 0),
1230-
eErrorTypePOSIX);
1227+
if (posix_spawnattr_enable_memory_tagging_fn) {
1228+
error = Status(posix_spawnattr_enable_memory_tagging_fn(&attr, 0),
1229+
eErrorTypePOSIX);
12311230
if (error.Fail()) {
12321231
LLDB_LOG(log,
12331232
"error: {0}, "

0 commit comments

Comments
 (0)