aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ir/node.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-05-17 11:40:21 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-05-18 20:23:13 +0000
commitf208f1ac993b0b47ebf9bb247a4bc16bc53ad0fd (patch)
tree8448ecc328997d498c34f803cc1b22de92ece322 /src/cmd/compile/internal/ir/node.go
parentc7dd3e305d8ee48b1f9041eaf175d2ecd7475f5f (diff)
downloadgo-f208f1ac993b0b47ebf9bb247a4bc16bc53ad0fd.tar.gz
go-f208f1ac993b0b47ebf9bb247a4bc16bc53ad0fd.zip
[dev.typeparams] cmd/compile/internal/ir: more useful Fatalfs
This CL just adds some additional details to existing Fatalf messages that make them more useful for identifying what went wrong. Change-Id: Icba0d943ccfb1b810a1ede0977cc8cf22b2afde5 Reviewed-on: https://go-review.googlesource.com/c/go/+/320612 Trust: Matthew Dempsky <mdempsky@google.com> Trust: Dan Scales <danscales@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dan Scales <danscales@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ir/node.go')
-rw-r--r--src/cmd/compile/internal/ir/node.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ir/node.go b/src/cmd/compile/internal/ir/node.go
index af559cc0820..9191eeb1d6c 100644
--- a/src/cmd/compile/internal/ir/node.go
+++ b/src/cmd/compile/internal/ir/node.go
@@ -563,7 +563,7 @@ func OuterValue(n Node) Node {
for {
switch nn := n; nn.Op() {
case OXDOT:
- base.Fatalf("OXDOT in walk")
+ base.FatalfAt(n.Pos(), "OXDOT in walk: %v", n)
case ODOT:
nn := nn.(*SelectorExpr)
n = nn.X