This reverts commit
ea200340702cf3ccfac7c5db1f11bb65c80971c7 now
that CL 114695 fixed the root cause of #25504.
Change-Id: If437fc832983bd8793bde28ce0e2e64436a0596c
Reviewed-on: https://go-review.googlesource.com/114087
Reviewed-by: David Chase <drchase@google.com>
for _, reg := range regs[:nreg] {
if reg.GCNum() == -1 {
if ptrOnly {
- if reg.String() == "g" {
- // Issue #25504: Sometimes we
- // spill and reload the g
- // register, which this sees
- // as a pointer load into the
- // g register. The g register
- // isn't a GP register and
- // can't appear in register
- // maps. Ignore it.
- continue
- }
v.Fatalf("pointer in non-pointer register %v", reg)
} else {
continue