compiler: don't use address of temporary for deferred delete
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 14 Sep 2018 16:55:41 +0000 (16:55 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 14 Sep 2018 16:55:41 +0000 (16:55 +0000)
commit2a7ba9243eec646d7aa4adae3b4b867a689251f2
treeed6dddd3d52e2444802907f0139d34e010c26ddc
parent98ef99ab97b84f526a401d8d96b9aca52c0daad7
compiler: don't use address of temporary for deferred delete

    This CL corrects the handling of a deferred delete in a loop, to not
    use a temporary whose value will, at deferred execution time, wind up
    being the last value in the loop.

    The test for this is TestDeferDeleteSlow in the 1.11 runtime package.

    Reviewed-on: https://go-review.googlesource.com/135358

From-SVN: r264325
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/parse.cc