From 01263f0a00c6b31087287d8edacf85483b3f7366 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 20 Feb 2014 19:49:38 -0500 Subject: [PATCH] go.tools/go/ssa: fix breakage caused by removal of types.NewPackage parameter. TBR=gri R=gri CC=golang-codereviews https://golang.org/cl/66600045 --- go/ssa/interp/reflect.go | 2 +- go/ssa/testmain.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.