x/tools/go/ssa: panic: no ssa.Value for function argument #33279
$ go version go version go1.12.7 linux/amd64
What did you do?
The panic does not occur if the result of the function call or of the indexing operation are stored in a temporary variable before doing the post-increment.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered:
I can reproduce this: I build ssadump with go1.13 and ran it on the test file and it panicked.
But I can't reproduce it with a version of ssadump built with tip (go version devel +47efbf0a4e Wed Oct 30 00:41:31 2019 +0000 darwin/amd64).
I wonder why that is
The following commit fixed the crash:
It should've been a behavior-preserving change, but it wasn't. Pinging @griesemer to inquire if the code in the original comment would be something that might be type-checked differently before and after the commit.
Edit: edited to ping our @griesemer and not an imposter :-)