cmd/compile/internal/gc: split SetInterface from SetFields

Change-Id: I4e568414faf64d3d47b1795382f0615f6caf53bc
Reviewed-on: https://go-review.googlesource.com/38390
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Matthew Dempsky 2017-03-20 02:32:42 -07:00
parent df47b82174
commit 236ef852be
4 changed files with 9 additions and 3 deletions

View file

@ -382,7 +382,7 @@ func makeErrorInterface() *Type {
field.Type = f
t := typ(TINTER)
t.SetFields([]*Field{field})
t.SetInterface([]*Field{field})
return t
}