From 5d9e0be159f46e6e98313eb66eb3355116c8bb26 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 6 Sep 2023 22:42:11 -0700 Subject: cmd/compile/internal/ssa: replace Frontend.Auto with Func.NewLocal Change-Id: I0858568d225daba1c318842dc0c9b5e652dff612 Reviewed-on: https://go-review.googlesource.com/c/go/+/526519 Auto-Submit: Matthew Dempsky LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Reviewed-by: Keith Randall --- src/cmd/compile/internal/ssa/stackalloc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/compile/internal/ssa/stackalloc.go') diff --git a/src/cmd/compile/internal/ssa/stackalloc.go b/src/cmd/compile/internal/ssa/stackalloc.go index 3e24b48a69..c9ca778b3a 100644 --- a/src/cmd/compile/internal/ssa/stackalloc.go +++ b/src/cmd/compile/internal/ssa/stackalloc.go @@ -280,7 +280,7 @@ func (s *stackAllocState) stackalloc() { // If there is no unused stack slot, allocate a new one. if i == len(locs) { s.nAuto++ - locs = append(locs, LocalSlot{N: f.fe.Auto(v.Pos, v.Type), Type: v.Type, Off: 0}) + locs = append(locs, LocalSlot{N: f.NewLocal(v.Pos, v.Type), Type: v.Type, Off: 0}) locations[v.Type] = locs } // Use the stack variable at that index for v. -- cgit v1.3-5-g9baa