mirror of
https://github.com/golang/go
synced 2024-11-11 22:50:22 -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:
parent
bc489dd6d5
commit
818f6b14b4
@ -545,13 +545,7 @@ func buildssa(fn *ir.Func, worker int) *ssa.Func {
|
|||||||
for _, n := range fn.Dcl {
|
for _, n := range fn.Dcl {
|
||||||
if n.Class == ir.PPARAM {
|
if n.Class == ir.PPARAM {
|
||||||
if s.canSSA(n) {
|
if s.canSSA(n) {
|
||||||
var v *ssa.Value
|
v := s.newValue0A(ssa.OpArg, n.Type(), n)
|
||||||
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)
|
|
||||||
}
|
|
||||||
s.vars[n] = v
|
s.vars[n] = v
|
||||||
s.addNamedValue(n, v) // This helps with debugging information, not needed for compilation itself.
|
s.addNamedValue(n, v) // This helps with debugging information, not needed for compilation itself.
|
||||||
} else { // address was taken AND/OR too large for SSA
|
} else { // address was taken AND/OR too large for SSA
|
||||||
|
Loading…
Reference in New Issue
Block a user