From d6d4f2481d590eaca6372b1ded00cea2d869aabc Mon Sep 17 00:00:00 2001 From: Stevie Hryciw Date: Mon, 7 Nov 2022 16:29:09 -0800 Subject: [PATCH] translate-c: use .identifier tokens in .identifier AST nodes --- src/translate_c/ast.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/translate_c/ast.zig b/src/translate_c/ast.zig index e54e986056..89e6554288 100644 --- a/src/translate_c/ast.zig +++ b/src/translate_c/ast.zig @@ -1139,7 +1139,7 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex { .string_literal => { const payload = node.castTag(.string_literal).?.data; return c.addNode(.{ - .tag = .identifier, + .tag = .string_literal, .main_token = try c.addToken(.string_literal, payload), .data = undefined, }); @@ -1147,7 +1147,7 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex { .char_literal => { const payload = node.castTag(.char_literal).?.data; return c.addNode(.{ - .tag = .identifier, + .tag = .char_literal, .main_token = try c.addToken(.char_literal, payload), .data = undefined, });