]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: gracefully fail when devirtualization fails
authorMatthew Dempsky <mdempsky@google.com>
Thu, 29 Oct 2020 19:47:15 +0000 (12:47 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 29 Oct 2020 20:19:24 +0000 (20:19 +0000)
commitaa4f48b751dbbfcb82e69d7622e7a9e9b8e48ee0
treecb037ade81950f706955501c7787155ff2c1fc84
parent5cc43c51c9929ce089ce2fc17a0f5631d21cd27d
cmd/compile: gracefully fail when devirtualization fails

We should still be able to devirtualize here, but I need to understand
the AST better. While I'm doing that, at least switch to a graceful
failure case (i.e., skip the optimization and print a warning message)
to fix the x/text builders.

Updates #42279.

Change-Id: Ie2b0b701fccf590d0cabfead703fc2fa999072cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/266359
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/gc/inl.go