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