]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: preserve argument order in debug_info
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Sat, 1 May 2021 16:45:57 +0000 (18:45 +0200)
committerThan McIntosh <thanm@google.com>
Mon, 3 May 2021 16:42:22 +0000 (16:42 +0000)
commit169155d61ede128caa8452bdff3ce9995287c138
tree5b40c6bca7746da8392461d97b735f0f804e1ca3
parent472f519fe26652af2fcef6121e259d7f193b27cf
cmd/compile: preserve argument order in debug_info

When regabi is used sorting by stack offset will not preserve the order
of function arguments. Trust that variables are already ordered
correctly when creating debug_info entries.

Fixes #45720

Change-Id: I1dbdd185975273f70244a23302d34f082347603d
Reviewed-on: https://go-review.googlesource.com/c/go/+/315280
Reviewed-by: Than McIntosh <thanm@google.com>
Trust: Jeremy Faller <jeremy@golang.org>
src/cmd/compile/internal/dwarfgen/scope.go