Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: empty variadic function causes argument to escape #30898
What version of Go are you using (
The allocation comes from converting an
For your three no-bug cases there is either no conversion (the
I'm surprised the original case and no-bug case 3 are different. That leads me to believe this issue should be fixable.
CL 168238 is an experimental take at normalizing variadic calls during typechecking.
It still fails a handful of regress tests. Most of them look harmless, though the uintptrescapes2.go changes are worth a double look.
Notably, it eliminates the convT64 call as expected.