diff options
author | David Chase <drchase@google.com> | 2021-04-09 18:05:57 -0400 |
---|---|---|
committer | David Chase <drchase@google.com> | 2021-04-13 22:31:20 +0000 |
commit | b4881d930a653ffc72cfcdff2902a627ba3a205c (patch) | |
tree | 7e447c8e183b16ab8493c99eaa90a8032cf74e79 /src/cmd/compile/internal/liveness | |
parent | efaf75a2166d397b2050cc0bb1b60b0c80698e2d (diff) | |
download | go-b4881d930a653ffc72cfcdff2902a627ba3a205c.tar.gz go-b4881d930a653ffc72cfcdff2902a627ba3a205c.zip |
cmd/compile: don't modify underlying type when creating bitmap for bodyless function
This fixes the build crash for
GOEXPERIMENT=regabi,regabiargs GOOS=windows go build syscall
Updates #40724.
Change-Id: I4400f6ff2e83e7e7e93ad5e58c6063b327532504
Reviewed-on: https://go-review.googlesource.com/c/go/+/309110
Trust: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/compile/internal/liveness')
-rw-r--r-- | src/cmd/compile/internal/liveness/plive.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/liveness/plive.go b/src/cmd/compile/internal/liveness/plive.go index 5d8e8b115d..4395aaeeb6 100644 --- a/src/cmd/compile/internal/liveness/plive.go +++ b/src/cmd/compile/internal/liveness/plive.go @@ -1457,7 +1457,6 @@ func WriteFuncMap(fn *ir.Func, abiInfo *abi.ABIParamResultInfo) { if ir.FuncName(fn) == "_" || fn.Sym().Linkname != "" { return } - types.CalcSize(fn.Type()) nptr := int(abiInfo.ArgWidth() / int64(types.PtrSize)) bv := bitvec.New(int32(nptr) * 2) |