cmd/gc: avoid duplicate allocation during inlining

Fixes issue 4667.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7275046