]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't crash while reporting invalid alias cycle
authorRobert Griesemer <gri@golang.org>
Thu, 9 Sep 2021 21:42:42 +0000 (14:42 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 9 Sep 2021 22:20:16 +0000 (22:20 +0000)
commit1a708bcf1d17171056a42ec1597ca8848c854d2a
tree8c04107f44a498745f06b99397b170a29258b52d
parent426ff3746fb2ebb777e32572b6eda5e19263ace9
cmd/compile: don't crash while reporting invalid alias cycle

Add a missing nil check in the formatting code for expression
nodes. Matches the nil checks in the same code.

Fixes #48301.

Change-Id: Ia9bfd3535254a94996ee190b544d95e15433d252
Reviewed-on: https://go-review.googlesource.com/c/go/+/348740
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/fmt.go
test/fixedbugs/issue48301.go [new file with mode: 0644]