Commit 868fb9ff authored by Matthew Dempsky's avatar Matthew Dempsky

cmd/compile: more lineno type conversions

Change-Id: Ib0a116a78f61eafe88a0ea5dc6733750ae755fdf
Reviewed-on: https://go-review.googlesource.com/20156
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 90cb1fda
...@@ -125,7 +125,7 @@ func dowidth(t *Type) { ...@@ -125,7 +125,7 @@ func dowidth(t *Type) {
if t.Width == -2 { if t.Width == -2 {
if !t.Broke { if !t.Broke {
t.Broke = true t.Broke = true
yyerrorl(int32(t.Lineno), "invalid recursive type %v", t) yyerrorl(t.Lineno, "invalid recursive type %v", t)
} }
t.Width = 0 t.Width = 0
...@@ -142,7 +142,7 @@ func dowidth(t *Type) { ...@@ -142,7 +142,7 @@ func dowidth(t *Type) {
defercalc++ defercalc++
lno := lineno lno := lineno
lineno = int32(t.Lineno) lineno = t.Lineno
t.Width = -2 t.Width = -2
t.Align = 0 t.Align = 0
......
...@@ -104,7 +104,7 @@ type Type struct { ...@@ -104,7 +104,7 @@ type Type struct {
Nod *Node // canonical OTYPE node Nod *Node // canonical OTYPE node
Orig *Type // original type (type literal or predefined type) Orig *Type // original type (type literal or predefined type)
Lineno int Lineno int32
// TFUNC // TFUNC
Thistuple int Thistuple int
......
...@@ -391,7 +391,7 @@ func typ(et EType) *Type { ...@@ -391,7 +391,7 @@ func typ(et EType) *Type {
t := new(Type) t := new(Type)
t.Etype = et t.Etype = et
t.Width = BADWIDTH t.Width = BADWIDTH
t.Lineno = int(lineno) t.Lineno = lineno
t.Orig = t t.Orig = t
return t return t
} }
......
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