diff --git a/src/translate_c.zig b/src/translate_c.zig index e62f5b45682419d6d50c12deecbb076197512e48..014f6b19345a3dce7c1c9ed93f4f63e5a3b6a185 100644 --- a/src/translate_c.zig +++ b/src/translate_c.zig @@ -1167,7 +1167,7 @@ fn transRecordDecl(c: *Context, scope: *Scope, record_decl: *const clang.RecordD } if (!c.zig_is_stage1 and is_packed) { - return failDecl(c, record_loc, bare_name, "cannot translate packed record union", .{}); + return failDecl(c, record_loc, name, "cannot translate packed record union", .{}); } const record_payload = try c.arena.create(ast.Payload.Record);