mirror of
https://github.com/golang/go
synced 2024-11-23 15:00:03 -07:00
cmd/compile: remove excessive whitespace in needkeyupdate
Passes toolstash-check. Change-Id: I5309125e0da65a5f240e53472b1c911252f0a472 Reviewed-on: https://go-review.googlesource.com/41403 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
08db34927d
commit
2f4ce69ddd
@ -1025,28 +1025,11 @@ func isreflexive(t *types.Type) bool {
|
||||
// need the key to be updated.
|
||||
func needkeyupdate(t *types.Type) bool {
|
||||
switch t.Etype {
|
||||
case TBOOL,
|
||||
TINT,
|
||||
TUINT,
|
||||
TINT8,
|
||||
TUINT8,
|
||||
TINT16,
|
||||
TUINT16,
|
||||
TINT32,
|
||||
TUINT32,
|
||||
TINT64,
|
||||
TUINT64,
|
||||
TUINTPTR,
|
||||
TPTR32,
|
||||
TPTR64,
|
||||
TUNSAFEPTR,
|
||||
TCHAN:
|
||||
case TBOOL, TINT, TUINT, TINT8, TUINT8, TINT16, TUINT16, TINT32, TUINT32,
|
||||
TINT64, TUINT64, TUINTPTR, TPTR32, TPTR64, TUNSAFEPTR, TCHAN:
|
||||
return false
|
||||
|
||||
case TFLOAT32, // floats can be +0/-0
|
||||
TFLOAT64,
|
||||
TCOMPLEX64,
|
||||
TCOMPLEX128,
|
||||
case TFLOAT32, TFLOAT64, TCOMPLEX64, TCOMPLEX128, // floats and complex can be +0/-0
|
||||
TINTER,
|
||||
TSTRING: // strings might have smaller backing stores
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user