From 9d8acf973ef8713894bbe5171a431a089c1369f5 Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Thu, 29 May 2025 16:44:22 +0200 Subject: [PATCH] aro_translate_c: Fix an assertion in buildArgsHash(). Closes #24015. --- lib/compiler/aro_translate_c.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler/aro_translate_c.zig b/lib/compiler/aro_translate_c.zig index 9485bc79d2..e064cfa345 100644 --- a/lib/compiler/aro_translate_c.zig +++ b/lib/compiler/aro_translate_c.zig @@ -1206,7 +1206,7 @@ pub const PatternList = struct { /// Assumes that `ms` represents a tokenized function-like macro. fn buildArgsHash(allocator: mem.Allocator, ms: MacroSlicer, hash: *ArgsPositionMap) MacroProcessingError!void { assert(ms.tokens.len > 2); - assert(ms.tokens[0].id == .identifier or ms.tokens[0].id == .extended_identifier); + assert(ms.tokens[0].id.isMacroIdentifier()); assert(ms.tokens[1].id == .l_paren); var i: usize = 2;