]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix possible nil deref added in CL 270943
authorDavid Chase <drchase@google.com>
Mon, 3 May 2021 17:24:27 +0000 (13:24 -0400)
committerDavid Chase <drchase@google.com>
Mon, 3 May 2021 18:17:42 +0000 (18:17 +0000)
commit8a4b7294af226f2628edc0ef2a7c45ecff6e06ff
tree9aa2102a65a6579b507d9b31aeb63cefb26a9d89
parent7f9febd4a19a02bd25e40c63289268e9c062701e
cmd/compile: fix possible nil deref added in CL 270943

In the event allocSpan returned a nil, this would crash.
Cleaned up the code and comments slightly, too.

Change-Id: I6231d4b4c14218e6956b4a97a205adc3206f59ec
Reviewed-on: https://go-review.googlesource.com/c/go/+/316429
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/mheap.go