compiler: no nil check needed for closure var dereferences
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 5 Dec 2017 02:03:19 +0000 (02:03 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 5 Dec 2017 02:03:19 +0000 (02:03 +0000)
commitae4bb13f0d8bd4d630a47f04ff5b7e60274a0a9b
treeba65137f4135af4de247ed5675b47fd1cac1136a
parent141abc6f1e5a6a2de0a1ee97b63d56ee50b85a66
compiler: no nil check needed for closure var dereferences

    Add the "no nil check needed" annotation to the dereference operations
    created in Parse::enclosing_var_reference (this is safe since the
    closure object is under control of the compiler, and pointer fields in
    it will always be non-nil).

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

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