Skip to content

Commit 604d68f

Browse files
authored
Merge pull request #70447 from al45tair/eng/PR-119137861-fix
[Runtime] Fix call site for malloc_type_posix_memalign.
2 parents 6812e61 + 7689c29 commit 604d68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Heap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void *swift::swift_slowAllocTyped(size_t size, size_t alignMask,
108108
// Do not use malloc_type_aligned_alloc() here, because we want this
109109
// to work if `size` is not an integer multiple of `alignment`, which
110110
// was a requirement of the latter in C11 (but not C17 and later).
111-
int err = malloc_type_posix_memalign(&p, alignment, size);
111+
int err = malloc_type_posix_memalign(&p, alignment, size, typeId);
112112
if (err != 0)
113113
p = nullptr;
114114
}

0 commit comments

Comments
 (0)