]> Cypherpunks repositories - gostls13.git/commit
go/types: fix empty interface optimization (minor performance bug)
authorRobert Griesemer <gri@golang.org>
Tue, 27 Feb 2018 23:39:42 +0000 (15:39 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 28 Feb 2018 18:22:21 +0000 (18:22 +0000)
commitc1359db9cc3e3f84e45c5a899e2dac128ea74d50
treeb0c390eb9cf325c2780ae6b021120d21e046efdd
parente2b5e6038ba35b964edae155bd74764fd4d9ade5
go/types: fix empty interface optimization (minor performance bug)

The tests checking for empty interfaces so that they can be fast-
tracked in the code actually didn't test the right field and the
fast track code never executed. Doing it now.

Change-Id: I58b2951efb3fb40b3366874c79fd653591ae0e99
Reviewed-on: https://go-review.googlesource.com/97519
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/interfaces.go
src/go/types/typexpr.go