]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: define starting block before opening html writer
authorKeith Randall <khr@golang.org>
Thu, 20 Aug 2020 06:01:58 +0000 (23:01 -0700)
committerKeith Randall <khr@golang.org>
Thu, 20 Aug 2020 15:14:12 +0000 (15:14 +0000)
commitc57c0212ebf44b7896477177c8e35be79ff3a586
treefdcb4218367c4d6310345d90f4f6cf0cb9ebe88e
parent8ec5a052ec8d4e628353fb5099b29341fae9b3a4
cmd/compile: define starting block before opening html writer

Opening the html writer can fail, and the failure printer wants
to use the entry block's line number. So make sure we set up
the entry block first.

Fixes #40919

Change-Id: I4ffa2839b45a721bbaf04ff84418e8108fa1cc37
Reviewed-on: https://go-review.googlesource.com/c/go/+/249497
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go