1
0
mirror of https://github.com/golang/go synced 2024-11-26 07:17:59 -07:00

cmd/compile: remove ".fp" fake arg

No longer needed with previous CLs.

Change-Id: I9a1c11092a2736c190fa8e8ddfbb913b708957eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/300155
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
Cherry Zhang 2021-03-08 15:19:47 -05:00
parent bc489dd6d5
commit 818f6b14b4

View File

@ -545,13 +545,7 @@ func buildssa(fn *ir.Func, worker int) *ssa.Func {
for _, n := range fn.Dcl {
if n.Class == ir.PPARAM {
if s.canSSA(n) {
var v *ssa.Value
if n.Sym().Name == ".fp" {
// Race-detector's get-caller-pc incantation is NOT a real Arg.
v = s.newValue0(ssa.OpGetCallerPC, n.Type())
} else {
v = s.newValue0A(ssa.OpArg, n.Type(), n)
}
v := s.newValue0A(ssa.OpArg, n.Type(), n)
s.vars[n] = v
s.addNamedValue(n, v) // This helps with debugging information, not needed for compilation itself.
} else { // address was taken AND/OR too large for SSA