compiler: adjust code to avoid shadowing local variables
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 4 Oct 2019 13:50:07 +0000 (13:50 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 4 Oct 2019 13:50:07 +0000 (13:50 +0000)
commit3694418a6d57c5b48383af8a5c6d1b1c2e3cec9b
tree05e7f63f70ad8f31a2d8fad27d75c50b2180dea9
parent0ced79bc4c9925c574177cb6345c26e4aad4155f
compiler: adjust code to avoid shadowing local variables

    Also add a couple of missing calls to free after mpz_get_str.

    This should make the code clean with respect to -Wshadow=local.

    Based on patch by Bernd Edlinger.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/198837

From-SVN: r276579
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/ast-dump.cc
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/parse.cc
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/types.cc