From 818f6b14b496d718c0f8e49c9ef4c06cc45cc0d4 Mon Sep 17 00:00:00 2001 From: Cherry Zhang Date: Mon, 8 Mar 2021 15:19:47 -0500 Subject: [PATCH] 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 Run-TryBot: Cherry Zhang TryBot-Result: Go Bot Reviewed-by: David Chase --- src/cmd/compile/internal/ssagen/ssa.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/cmd/compile/internal/ssagen/ssa.go b/src/cmd/compile/internal/ssagen/ssa.go index cc79c07af7..f1f244cce6 100644 --- a/src/cmd/compile/internal/ssagen/ssa.go +++ b/src/cmd/compile/internal/ssagen/ssa.go @@ -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