Skip to content

Commit 7584a19

Browse files
mdempskypull[bot]
authored andcommitted
cmd/compile/internal/escape: mark blankLoc as transient
Discarded values never persist, so they can be transiently allocated too. Change-Id: I036ce0c1eea45e437142497bb7df3ecb44b56e52 Reviewed-on: https://go-review.googlesource.com/c/go/+/520256 Auto-Submit: Matthew Dempsky <[email protected]> Reviewed-by: Than McIntosh <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]>
1 parent cdae588 commit 7584a19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/compile/internal/escape/escape.go

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ func Batch(fns []*ir.Func, recursive bool) {
130130

131131
var b batch
132132
b.heapLoc.escapes = true
133+
b.blankLoc.transient = true
133134

134135
// Construct data-flow graph from syntax trees.
135136
for _, fn := range fns {

0 commit comments

Comments
 (0)