diff options
Diffstat (limited to 'src/cmd/compile/internal/gc/racewalk.go')
-rw-r--r-- | src/cmd/compile/internal/gc/racewalk.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/racewalk.go b/src/cmd/compile/internal/gc/racewalk.go index 67802fe917..e73e7fbbe1 100644 --- a/src/cmd/compile/internal/gc/racewalk.go +++ b/src/cmd/compile/internal/gc/racewalk.go @@ -35,7 +35,7 @@ func instrument(fn *ir.Func) { // This only works for amd64. This will not // work on arm or others that might support // race in the future. - nodpc := nodfp.CloneName() + nodpc := ir.RegFP.CloneName() nodpc.SetType(types.Types[types.TUINTPTR]) nodpc.SetFrameOffset(int64(-Widthptr)) fn.Dcl = append(fn.Dcl, nodpc) |