aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/stackalloc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/ssa/stackalloc.go')
-rw-r--r--src/cmd/compile/internal/ssa/stackalloc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/stackalloc.go b/src/cmd/compile/internal/ssa/stackalloc.go
index cdc40e5a35..40edfc55c6 100644
--- a/src/cmd/compile/internal/ssa/stackalloc.go
+++ b/src/cmd/compile/internal/ssa/stackalloc.go
@@ -35,7 +35,7 @@ type stackAllocState struct {
}
func newStackAllocState(f *Func) *stackAllocState {
- s := f.Config.stackAllocState
+ s := f.Cache.stackAllocState
if s == nil {
return new(stackAllocState)
}
@@ -61,7 +61,7 @@ func putStackAllocState(s *stackAllocState) {
for i := range s.used {
s.used[i] = false
}
- s.f.Config.stackAllocState = s
+ s.f.Cache.stackAllocState = s
s.f = nil
s.live = nil
s.nArgSlot, s.nNotNeed, s.nNamedSlot, s.nReuse, s.nAuto, s.nSelfInterfere = 0, 0, 0, 0, 0, 0