cbe: fix crash rendering argument names in lazy functions

Closes #19905
This commit is contained in:
Jacob Young
2025-02-09 10:12:15 -05:00
committed by Andrew Kelley
parent eb7963e4c7
commit 74fbcd22e6
2 changed files with 23 additions and 19 deletions

View File

@@ -2855,7 +2855,7 @@ pub fn genLazyFn(o: *Object, lazy_ctype_pool: *const CType.Pool, lazy_fn: LazyFn
try w.writeByte('(');
for (0..fn_info.param_ctypes.len) |arg| {
if (arg > 0) try w.writeAll(", ");
try o.dg.writeCValue(w, .{ .arg = arg });
try w.print("a{d}", .{arg});
}
try w.writeAll(");\n}\n");
},