Improved assembler performance
This commit is contained in:
@ -12,10 +12,10 @@ func (a *Assembler) CanSkipReturn() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
if last.Mnemonic == CALL {
|
||||
label, isLabel := last.Data.(*Label)
|
||||
if last.Mnemonic == CALL && last.Type == TypeLabel {
|
||||
label := a.Param.Label[last.Index]
|
||||
|
||||
if isLabel && label.String() == "core.exit" {
|
||||
if label.String() == "core.exit" {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user