diff options
Diffstat (limited to 'src/cmd/compile/internal/ssa/stackalloc.go')
| -rw-r--r-- | src/cmd/compile/internal/ssa/stackalloc.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/stackalloc.go b/src/cmd/compile/internal/ssa/stackalloc.go index 44f4096cb2..c08ed79cd6 100644 --- a/src/cmd/compile/internal/ssa/stackalloc.go +++ b/src/cmd/compile/internal/ssa/stackalloc.go @@ -304,7 +304,8 @@ func (s *stackAllocState) computeLive(spillLive [][]ID) { // for each predecessor of b, expand its list of live-at-end values // invariant: s contains the values live at the start of b (excluding phi inputs) - for i, p := range b.Preds { + for i, e := range b.Preds { + p := e.b t.clear() t.addAll(s.live[p.ID]) t.addAll(live.contents()) |
