Skip to content

Commit

Permalink
const-var: fix const alloc node compile
Browse files Browse the repository at this point in the history
  • Loading branch information
douyixuan committed Jun 23, 2024
1 parent fa4b071 commit 0db4523
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/compiler/alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ func (c *Compiler) compileAllocNode(v *parser.AllocNode) {
c.contextAlloc = c.contextAlloc[0 : len(c.contextAlloc)-1]
}()

if v.IsConst {
c.compileAllocConstNode(v)
return
}
// if v.IsConst {
// c.compileAllocConstNode(v)
// return
// }

// Allocate from type
if len(v.Val) == 0 && v.Type != nil {
Expand Down

0 comments on commit 0db4523

Please sign in to comment.