diff --git a/go/ssa/interp/reflect.go b/go/ssa/interp/reflect.go index e7f89d7db65..76926578d05 100644 --- a/go/ssa/interp/reflect.go +++ b/go/ssa/interp/reflect.go @@ -28,7 +28,7 @@ type opaqueType struct { func (t *opaqueType) String() string { return t.name } // A bogus "reflect" type-checker package. Shared across interpreters. -var reflectTypesPackage = types.NewPackage("reflect", "reflect", nil) +var reflectTypesPackage = types.NewPackage("reflect", "reflect") // rtype is the concrete type the interpreter uses to implement the // reflect.Type interface. Since its type is opaque to the target diff --git a/go/ssa/testmain.go b/go/ssa/testmain.go index 09293331bce..51c8d4ed95c 100644 --- a/go/ssa/testmain.go +++ b/go/ssa/testmain.go @@ -32,7 +32,7 @@ func (prog *Program) CreateTestMainPackage(pkgs ...*Package) *Package { Prog: prog, Members: make(map[string]Member), values: make(map[types.Object]Value), - Object: types.NewPackage("testmain", "testmain", nil), + Object: types.NewPackage("testmain", "testmain"), } // Build package's init function.