Commit 8ab71304 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/compile: use newnamel in typenamesym

The node in typenamesym requires neither
a position nor a curfn.

Passes toolstash-check.

Updates #15756

Change-Id: I6d39a8961e5578fe5924aaceb29045b6de2699df
Reviewed-on: https://go-review.googlesource.com/39194
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 8caf21da
...@@ -7,6 +7,7 @@ package gc ...@@ -7,6 +7,7 @@ package gc
import ( import (
"cmd/internal/gcprog" "cmd/internal/gcprog"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/src"
"fmt" "fmt"
"os" "os"
"sort" "sort"
...@@ -936,7 +937,7 @@ func typenamesym(t *Type) *Sym { ...@@ -936,7 +937,7 @@ func typenamesym(t *Type) *Sym {
} }
s := typesym(t) s := typesym(t)
if s.Def == nil { if s.Def == nil {
n := newname(s) n := newnamel(src.NoXPos, s)
n.Type = Types[TUINT8] n.Type = Types[TUINT8]
n.Class = PEXTERN n.Class = PEXTERN
n.Typecheck = 1 n.Typecheck = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment