Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libgo/go/reflect/eqtype.go
2023-03-06 14:48:14 +01:00

25 lines
497 B
Go

// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !aix !gccgo
package reflect
// rtypeEqual returns true if both rtypes are identical.
func rtypeEqual(t1, t2 *rtype) bool {
return t1 == t2
}
// typeEqual returns true if both Types are identical.
func typeEqual(t1, t2 Type) bool {
return t1 == t2
}
func toType(p *rtype) Type {
if p == nil {
return nil
}
return p
}