Commit 9f6401c692

Henrik Laxhuber <henrik@laxhuber.com>
2020-07-26 18:29:45
Fix a use of appendToken to appendIdentifier in translate-c
1 parent 4420254
Changed files (1)
src-self-hosted
src-self-hosted/translate_c.zig
@@ -4514,7 +4514,7 @@ const CtrlFlow = struct {
         const ltoken = try appendToken(c, kw, kw_text);
         const label_token = if (label) |l| blk: {
             _ = try appendToken(c, .Colon, ":");
-            break :blk try appendToken(c, .Identifier, l);
+            break :blk try appendIdentifier(c, l);
         } else null;
         return CtrlFlow{
             .c = c,