cmd/compile: bad line number assigned to instruction loading value into argument register #48546
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
This worked correctly in go1.16 but doesn't in 1.17 or on tip at:
When compiling https://play.golang.org/p/zUNR4CgABnt with
-gcflags=-N -l
the inner loop is compiled to:I believe the instruction at 0x47fb0c is simply loading
interval
into an argfument of runtime.mapassign_fast64ptr, however it gets assigned to line 35 which is the declaration ofinterval
, outside of the loop.cc @dr2chase
The text was updated successfully, but these errors were encountered: