]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use typecheck.InitUniverse in unit tests
authorMatthew Dempsky <mdempsky@google.com>
Thu, 26 Aug 2021 21:16:24 +0000 (14:16 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 27 Aug 2021 00:36:19 +0000 (00:36 +0000)
commitf153b6739b30c1e99f8646f2dafc77a92204f10d
tree3dee73a10efc1feb8cdb9baa2105b3c27c101ef3
parent967a8017f7d41717335ee020e46e2c55c5c9e96e
cmd/compile: use typecheck.InitUniverse in unit tests

Rather than ad hoc setting up the universe, just initialize it
properly.

Change-Id: I18484b952321f55eb3e1e48fd383068a4ee75f66
Reviewed-on: https://go-review.googlesource.com/c/go/+/345475
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/ssa/export_test.go