Skip to content

Commit

Permalink
cl: loadConst store ctx.syms skip _
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Mar 8, 2021
1 parent daf83bb commit 52aa5b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cl/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ func loadConst(ctx *blockCtx, name string, typ ast.Expr, value ast.Expr) {
c.v = v
c.kind = t.Kind()
}
ctx.syms[name] = c
if name != "_" {
ctx.syms[name] = c
}
}

func loadVar(ctx *blockCtx, name string, typ ast.Expr, value ast.Expr) {
Expand Down

0 comments on commit 52aa5b9

Please sign in to comment.