Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/compile: upgrade ssa to do (int or float) -> complex
Generic instantiations can produce conversions from constant literal ints or floats to complex values. We could constant literals during instantiation, but it is just as easy to upgrade the code generator to do the conversions. Fixes #50193 Change-Id: I24bdc09226c8e868f6282e0e4057ba6c3ad5c41a Reviewed-on: https://go-review.googlesource.com/c/go/+/372514 Trust: Keith Randall <[email protected]> Run-TryBot: Keith Randall <[email protected]> Trust: Dan Scales <[email protected]> Reviewed-by: Dan Scales <[email protected]> Reviewed-by: Cherry Mui <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information