1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:40:04 -07:00

go/internal/gccgoimporter: fix handling of "byte" and "rune" alias types

Fixes #11762.

Change-Id: I0c7797a2dfdbbcf137bb287f854037a4a697c6e4
Reviewed-on: https://go-review.googlesource.com/12443
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Matthew Dempsky 2015-07-20 17:04:18 -07:00 committed by Russ Cox
parent e28ff1f3a1
commit af8297da86

View File

@ -658,8 +658,8 @@ func lookupBuiltinType(typ int) types.Type {
gccgoBuiltinCOMPLEX64: types.Typ[types.Complex64], gccgoBuiltinCOMPLEX64: types.Typ[types.Complex64],
gccgoBuiltinCOMPLEX128: types.Typ[types.Complex128], gccgoBuiltinCOMPLEX128: types.Typ[types.Complex128],
gccgoBuiltinERROR: types.Universe.Lookup("error").Type(), gccgoBuiltinERROR: types.Universe.Lookup("error").Type(),
gccgoBuiltinBYTE: types.Typ[types.Byte], gccgoBuiltinBYTE: types.Universe.Lookup("byte").Type(),
gccgoBuiltinRUNE: types.Typ[types.Rune], gccgoBuiltinRUNE: types.Universe.Lookup("rune").Type(),
}[typ] }[typ]
} }