compiler: do not use voidCalls
when calculating stack size
This was probably a part of some earlier logic.
This commit is contained in:
parent
d8badd9a8d
commit
f70cb4f34a
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ func (c *funcScope) countArgs() int {
|
||||||
func (c *funcScope) stackSize() int64 {
|
func (c *funcScope) stackSize() int64 {
|
||||||
size := c.countLocals()
|
size := c.countLocals()
|
||||||
numArgs := c.countArgs()
|
numArgs := c.countArgs()
|
||||||
return int64(size + numArgs + len(c.voidCalls))
|
return int64(size + numArgs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// newVariable creates a new local variable or argument in the scope of the function.
|
// newVariable creates a new local variable or argument in the scope of the function.
|
||||||
|
|
Loading…
Reference in a new issue