Skip to content

Commit d6d1024

Browse files
Zentrikvtjnash
authored andcommitted
fixup! Workaround llvm/llvm-project#136292
1 parent 90dfcd2 commit d6d1024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/genericmemory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ JL_DLLEXPORT jl_genericmemory_t *jl_ptr_to_genericmemory(jl_value_t *mtype, void
152152
if (((uintptr_t)data) & ((align > JL_HEAP_ALIGNMENT ? JL_HEAP_ALIGNMENT : align) - 1))
153153
jl_exceptionf(jl_argumenterror_type,
154154
"unsafe_wrap: pointer %p is not properly aligned to %u bytes", data, align);
155-
size_t nbytes = 0; // workaround clang sa bug: https://github.com/llvm/llvm-project/issues/136292
155+
size_t nbytes = 0; // initialized to workaround clang sa bug: https://github.com/llvm/llvm-project/issues/136292
156156
int overflow = __builtin_mul_overflow(nel, elsz, &nbytes);
157157
if (isunion) {
158158
// an extra byte for each isbits union memory element, stored at m->ptr + m->length

0 commit comments

Comments
 (0)