]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: compute number of arguments correctly
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 11 Mar 2016 22:49:07 +0000 (17:49 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Sat, 12 Mar 2016 01:23:25 +0000 (01:23 +0000)
commit7c546566c35ed682dcd1892d174071cde1014e46
treec165f0e12852bec32677e925664adbe00fb54bbe
parentae00df128d8434dd37f73123aaea09de786d0275
cmd/compile: compute number of arguments correctly

The outCount value includes a flag bit for dotdotdot.

If we have this count incorrect, then the offset for the
methodset *rtype are in the wrong place.

Fixes #14783

Change-Id: If5acb16af08d4ffe36c8c9ee389c32f2712ce757
Reviewed-on: https://go-review.googlesource.com/20566
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/reflect.go
src/reflect/all_test.go