checker: remove dump() dependency from ComptimeFor (#25000)

This commit is contained in:
Felipe Pena 2025-07-29 21:08:16 -03:00 committed by GitHub
parent efd6eccadc
commit 56b51b69d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,7 +290,6 @@ fn (mut c Checker) comptime_for(mut node ast.ComptimeFor) {
unwrapped_expr_type := c.unwrap_generic(field.typ)
tsym := c.table.sym(unwrapped_expr_type)
c.table.dumps[int(unwrapped_expr_type.clear_flags(.option, .result, .atomic_f))] = tsym.cname
c.markused_comptimefor(mut node, unwrapped_expr_type)
if tsym.kind == .array_fixed {
info := tsym.info as ast.ArrayFixed