aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-11-01 09:39:01 -0700
committerRobert Griesemer <gri@golang.org>2016-11-01 16:49:30 +0000
commitb82ae33b903e309140fd471eee2de4c8ac7c0b46 (patch)
tree8a8ba8814de343f77918afbfde445e5ac529f47c /src
parent719b493312154b43e9ace5743f3d74efb155b9d7 (diff)
downloadgo-b82ae33b903e309140fd471eee2de4c8ac7c0b46.tar.xz
cmd/compile: add debug print to identify unexpected objects
This should never be called but should help identify causes of unexpected panics such as in issue #17716. Change-Id: Id6ad0cef1088a41bfcc69110a93484a7e39c4128 Reviewed-on: https://go-review.googlesource.com/32480 Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/go/types/call.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/go/types/call.go b/src/go/types/call.go
index 37595985a5..0d1fb34bce 100644
--- a/src/go/types/call.go
+++ b/src/go/types/call.go
@@ -318,6 +318,7 @@ func (check *Checker) selector(x *operand, e *ast.SelectorExpr) {
x.typ = exp.typ
x.id = exp.id
default:
+ check.dump("unexpected object %v (%T)", exp, exp)
unreachable()
}
x.expr = e