]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove guard for OCOMPLEX in evconst
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 15 Jan 2020 03:45:05 +0000 (10:45 +0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 11 Mar 2020 20:17:30 +0000 (20:17 +0000)
After CL 166983, the guard for OCOMPLEX in evconst is not necessary
anymore.

Passes toolstash-check.

Change-Id: I1d4a9b447bad9ba0289fc7f997febc0e0b4167ea
Reviewed-on: https://go-review.googlesource.com/c/go/+/214837
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/const.go

index 5e5b32bc4a2ff611dbfb16e6e4f350e4b71dcf20..fe73df9d57422c94e9113088855b473614aef45c 100644 (file)
@@ -673,10 +673,6 @@ func evconst(n *Node) {
                }
 
        case OCOMPLEX:
-               if nl == nil || nr == nil {
-                       // TODO(mdempsky): Remove after early OAS2FUNC rewrite CL lands.
-                       break
-               }
                if nl.Op == OLITERAL && nr.Op == OLITERAL {
                        // make it a complex literal
                        c := newMpcmplx()