Skip to content

Commit 9d8acf9

Browse files
Vexualexrp
authored andcommitted
aro_translate_c: Fix an assertion in buildArgsHash().
Closes #24015.
1 parent 92b3c4b commit 9d8acf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compiler/aro_translate_c.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ pub const PatternList = struct {
12061206
/// Assumes that `ms` represents a tokenized function-like macro.
12071207
fn buildArgsHash(allocator: mem.Allocator, ms: MacroSlicer, hash: *ArgsPositionMap) MacroProcessingError!void {
12081208
assert(ms.tokens.len > 2);
1209-
assert(ms.tokens[0].id == .identifier or ms.tokens[0].id == .extended_identifier);
1209+
assert(ms.tokens[0].id.isMacroIdentifier());
12101210
assert(ms.tokens[1].id == .l_paren);
12111211

12121212
var i: usize = 2;

0 commit comments

Comments
 (0)