mirror of
https://github.com/golang/go
synced 2024-11-20 10:24:40 -07:00
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>
This commit is contained in:
parent
719b493312
commit
b82ae33b90
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user