Skip to content

Commit 0db4523

Browse files
committed
const-var: fix const alloc node compile
1 parent fa4b071 commit 0db4523

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/compiler/alloc.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ func (c *Compiler) compileAllocNode(v *parser.AllocNode) {
2121
c.contextAlloc = c.contextAlloc[0 : len(c.contextAlloc)-1]
2222
}()
2323

24-
if v.IsConst {
25-
c.compileAllocConstNode(v)
26-
return
27-
}
24+
// if v.IsConst {
25+
// c.compileAllocConstNode(v)
26+
// return
27+
// }
2828

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

0 commit comments

Comments
 (0)