]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: minor cleanup to HashDebugPos
authorDavid Chase <drchase@google.com>
Thu, 6 Apr 2023 14:09:51 +0000 (10:09 -0400)
committerDavid Chase <drchase@google.com>
Fri, 7 Apr 2023 21:05:01 +0000 (21:05 +0000)
commit42866e566a4586d7a39758c7186fbcc4678ec97d
treed17e6535d56e69517144a595c6b9f9b49b9435fb
parent46a49eb52e6402708446a7a71db8a29dbdb99139
cmd/compile: minor cleanup to HashDebugPos

HashDebugPos function/method included a parameter that was always
the same, and a variable in the same package as the hashdebug code.
So remove it.

(I wrote that code, there was no reason for it to be that way).

Also corrects a stale comment in the loopvar code.

Change-Id: Id3da69cfe6dadeb31d5de62fb76d15103a5d6152
Reviewed-on: https://go-review.googlesource.com/c/go/+/482816
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/base/flag.go
src/cmd/compile/internal/base/hashdebug.go
src/cmd/compile/internal/loopvar/loopvar.go
src/cmd/compile/internal/ssa/func.go