]> Cypherpunks repositories - gostls13.git/commit
go/types: remove superfluous code for shift checking
authorRobert Griesemer <gri@golang.org>
Fri, 19 Mar 2021 00:29:02 +0000 (17:29 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 23 Mar 2021 05:12:12 +0000 (05:12 +0000)
commitcd26192abab742cb2df24827226eab0e9f3683a9
treeaf0a0fcb15dcfe6cb1b149d59fb17cbe82535076
parente7aa0f9f2834fb7eac1f435f834e6bbf461d55ac
go/types: remove superfluous code for shift checking

Negative constant shift counts are already handled
earlier in the code. No need anymore for this extra
section.

With this change, the shift code matches types2
with respect to the function logic.

Change-Id: Ic8b7f382271c79ab66021e30955cd9bac092332b
Reviewed-on: https://go-review.googlesource.com/c/go/+/303093
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/types/expr.go