From af8297da86a19d68ee442db8ec325be952e72ae2 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Mon, 20 Jul 2015 17:04:18 -0700 Subject: [PATCH] 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 Run-TryBot: Matthew Dempsky --- src/go/internal/gccgoimporter/parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/go/internal/gccgoimporter/parser.go b/src/go/internal/gccgoimporter/parser.go index e985de5a678..c06cce435b1 100644 --- a/src/go/internal/gccgoimporter/parser.go +++ b/src/go/internal/gccgoimporter/parser.go @@ -658,8 +658,8 @@ func lookupBuiltinType(typ int) types.Type { gccgoBuiltinCOMPLEX64: types.Typ[types.Complex64], gccgoBuiltinCOMPLEX128: types.Typ[types.Complex128], gccgoBuiltinERROR: types.Universe.Lookup("error").Type(), - gccgoBuiltinBYTE: types.Typ[types.Byte], - gccgoBuiltinRUNE: types.Typ[types.Rune], + gccgoBuiltinBYTE: types.Universe.Lookup("byte").Type(), + gccgoBuiltinRUNE: types.Universe.Lookup("rune").Type(), }[typ] }