Skip to content

Commit e5c6a3f

Browse files
committed
objects: clean up builder_call a bit
1 parent eecbddc commit e5c6a3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

objects/builder_call.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
package objects
1616

1717
import (
18-
"fmt"
19-
2018
"github.com/go-air/pal/memory"
2119
)
2220

@@ -26,7 +24,6 @@ import (
2624
//
2725
// args indicate the arguments at the call site.
2826
func (b *Builder) Call(f *Func, dst memory.Loc, args []memory.Loc) {
29-
fmt.Printf("n args %d n params %d\n", len(args), len(f.params))
3027
start := 0
3128
if f.recv != memory.NoLoc {
3229
start = 1
@@ -36,6 +33,9 @@ func (b *Builder) Call(f *Func, dst memory.Loc, args []memory.Loc) {
3633
b.AddStore(f.params[i], arg)
3734
}
3835
if dst == memory.NoLoc {
36+
// this is for go and defer calls, the returns
37+
// even if defined are by construction ignored
38+
// at the call site.
3939
return
4040
}
4141
switch len(f.results) {

0 commit comments

Comments
 (0)