mirror of
https://github.com/golang/go
synced 2024-09-05 07:54:46 +00:00
![]() The transform functions (specifically transformArgs, which is used from transformCall/transformReturn) require that ir.CurFunc is set correctly. Since transformCall() is used on the call of an instantiated generic function, we need to set ir.CurFunc correctly in stencil(). Also, correctly save/restore ir.CurFunc in genericSubst(). Without this fix, ir.CurFunc can be nil when we call TransformCall() from stencil(), which leads to some temp variables being added incorrectly to ir.TodoFunc (which leads to the fatal panic in the issue). Fixes #45722 Change-Id: Iddf4a67d28f2100dde8cde5dbc9ca1e00dad6089 Reviewed-on: https://go-review.googlesource.com/c/go/+/313869 Run-TryBot: Dan Scales <danscales@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Trust: Dan Scales <danscales@google.com> |
||
---|---|---|
.. | ||
absdiff.go | ||
adder.go | ||
append.go | ||
chans.go | ||
combine.go | ||
cons.go | ||
double.go | ||
fact.go | ||
graph.go | ||
importtest.go | ||
index.go | ||
interfacearg.go | ||
issue45547.go | ||
issue45722.go | ||
list.go | ||
list2.go | ||
lockable.go | ||
map.go | ||
maps.go | ||
metrics.go | ||
min.go | ||
ordered.go | ||
orderedmap.go | ||
pair.go | ||
pragma.go | ||
sets.go | ||
settable.go | ||
slices.go | ||
smallest.go | ||
smoketest.go | ||
stringable.go | ||
stringer.go | ||
struct.go | ||
sum.go | ||
tparam1.go | ||
typelist.go | ||
value.go |