commit 44b9a1d031cb72cd64909b3a7bd0c65b2e16815b (tree)
parent 99826a2ba89ccd80caaa4eeb47c59a71ddfe76b6
Author: Veikka Tuominen <git@vexu.eu>
Date: Thu, 8 Sep 2022 01:00:19 +0300
translate-c: use correct name for failDecl
Closes #12737
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);