Added label type
This commit is contained in:
parent
f4b0020c49
commit
14a867bc8b
32 changed files with 102 additions and 63 deletions
|
@ -12,7 +12,7 @@ func (f *Function) CompileLoop(loop *ast.Loop) error {
|
|||
}
|
||||
|
||||
f.count.loop++
|
||||
label := f.CreateLabel("loop", f.count.loop)
|
||||
label := f.CreateLabel("loop", f.count.loop, asm.ControlLabel)
|
||||
f.AddLabel(label)
|
||||
scope := f.PushScope(loop.Body, f.File.Bytes)
|
||||
scope.InLoop = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue