Skip to content

Commit d037bba

Browse files
committed
cmd/compile: add debug log prior to export data lookup
If there is a crash in LookupFunc (which has occurred a few times now), this ensures that we log the offending symbol before crashing. For #67016. Change-Id: I0119597de2be3d1b97c41a9361273d1feb90ec11 Reviewed-on: https://go-review.googlesource.com/c/go/+/581437 Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Than McIntosh <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 508e761 commit d037bba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmd/compile/internal/pgoir/irgraph.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ func addIndirectEdges(g *IRGraph, namedEdgeMap pgo.NamedEdgeMap) {
333333
// devirtualization. Instantiation of generic functions
334334
// will likely need to be done at the devirtualization
335335
// site, if at all.
336+
if base.Debug.PGODebug >= 3 {
337+
fmt.Printf("addIndirectEdges: %s attempting export data lookup\n", key.CalleeName)
338+
}
336339
fn, err := LookupFunc(key.CalleeName)
337340
if err == nil {
338341
if base.Debug.PGODebug >= 3 {

0 commit comments

Comments
 (0)