From: Cuong Manh Le Date: Wed, 15 Jan 2020 03:45:05 +0000 (+0700) Subject: cmd/compile: remove guard for OCOMPLEX in evconst X-Git-Tag: go1.15beta1~888 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=235a7c57be4a25a72c631acc8d3401e2f14c419d;p=gostls13.git cmd/compile: remove guard for OCOMPLEX in evconst 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 TryBot-Result: Gobot Gobot Reviewed-by: Matthew Dempsky --- diff --git a/src/cmd/compile/internal/gc/const.go b/src/cmd/compile/internal/gc/const.go index 5e5b32bc4a..fe73df9d57 100644 --- a/src/cmd/compile/internal/gc/const.go +++ b/src/cmd/compile/internal/gc/const.go @@ -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()