Skip to content

Commit 68700e5

Browse files
committed
link+macho+fuzz: use correct input type
A debug build of the compiler detects invalid union access since `classifyInputFile` detects `.archive` and this line constructed a `.object` input.
1 parent 3ed1599 commit 68700e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/link/MachO.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ pub fn flushModule(
416416
}
417417

418418
if (comp.config.any_fuzz) {
419-
try positionals.append(try link.openObjectInput(diags, comp.fuzzer_lib.?.full_object_path));
419+
try positionals.append(try link.openArchiveInput(diags, comp.fuzzer_lib.?.full_object_path, false, false));
420420
}
421421

422422
if (comp.ubsan_rt_lib) |crt_file| {

0 commit comments

Comments
 (0)