cmd/compile: hard fail if n.Opt() is not nil in walkCheckPtrArithmetic
cmd/compile: hard fail if n.Opt() is not nil in walkCheckPtrArithmetic

n.Opt() is used in walkCheckPtrArithmetic to prevent infinite loops. The
fact that it's used today because n.Opt() is not used for OCONVNOP
during walk.go. If that changes, then it's not safe to repalce it
anymore. So doing hard fail if that case happens, the author of new
changes will be noticed and must change the usage of n.Opt() inside
walkCheckPtrArithmetic, too.

Change-Id: Ic7094baa1759c647fc10e82457c19026099a0d47
Reviewed-on: https://go-review.googlesource.com/c/go/+/202497
Run-TryBot: Cuong Manh Le <54b4457f1dff6823379654eb5867596497ba782f@gmail.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Matthew Dempsky <e56ac2c500064424afac424d4b5e53bd0570a731@google.com>

CAFxX/go,cloudflare/go,akutz/go,nawawi/go,nawawi/go,CAFxX/go,CAFxX/go,cloudflare/go,golang/go,cloudflare/go,cloudflare/go,nawawi/go,akutz/go,akutz/go,CAFxX/go,golang/go,nawawi/go,nawawi/go,nawawi/go,golang/go,akutz/go,golang/go,akutz/go,akutz/go,golang/go,cloudflare/go,cloudflare/go,golang/go,CAFxX/go,akutz/go,golang/go,CAFxX/go,cloudflare/go,CAFxX/go,golang/go,nawawi/go,nawawi/go,CAFxX/go,cloudflare/go,akutz/go