Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 30, 2024
1 parent d9f5112 commit 40bda2e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions vlib/v/gen/c/for.v
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,6 @@ fn (mut g Gen) for_in_stmt(node_ ast.ForInStmt) {
mut val_sym := g.table.sym(node.val_type)
op_field := g.dot_or_ptr(node.cond_type)

if is_comptime && g.comptime.is_comptime(node.cond) {
mut unwrapped_typ := g.unwrap_generic(node.cond_type)
ctyp := g.unwrap_generic(g.type_resolver.get_type(node.cond))
if ctyp != ast.void_type {
unwrapped_typ = ctyp
}
val_sym = g.table.sym(unwrapped_typ)
node.val_type = g.table.value_type(unwrapped_typ)
styp = g.styp(node.val_type)
node.scope.update_var_type(node.val_var, node.val_type)
node.cond_type = node.val_type
}
mut cond_var := ''
cond_is_option := node.cond_type.has_flag(.option)
if (node.cond is ast.Ident && !cond_is_option)
Expand Down

0 comments on commit 40bda2e

Please sign in to comment.