Skip to content

Commit 8bdd52d

Browse files
authored
fix bug in --strip-ir when fields are replaced with NULL (#47145)
1 parent 08d5b0d commit 8bdd52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/staticdata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,8 @@ static void jl_write_values(jl_serializer_state *s)
10811081
if (fld != NULL) {
10821082
arraylist_push(&s->relocs_list, (void*)(uintptr_t)(offset + reloc_offset)); // relocation location
10831083
arraylist_push(&s->relocs_list, (void*)backref_id(s, fld)); // relocation target
1084-
memset(&s->s->buf[offset + reloc_offset], 0, sizeof(fld)); // relocation offset (none)
10851084
}
1085+
memset(&s->s->buf[offset + reloc_offset], 0, sizeof(fld)); // relocation offset (none)
10861086
}
10871087

10881088
// A few objects need additional handling beyond the generic serialization above

0 commit comments

Comments
 (0)