Commit 895e48ca authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

reflect: remove a double negative, use the rtype.pointers method for clarity

Change-Id: Ia24e9f0da1622cededa17b2c54ff9e4bb80cf946
Reviewed-on: https://go-review.googlesource.com/1633Reviewed-by: 's avatarMinux Ma <minux@golang.org>
Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent 50bc3d5b
......@@ -1908,7 +1908,7 @@ func (bv *bitVector) append2(bits uint8) {
func addTypeBits(bv *bitVector, offset *uintptr, t *rtype) {
*offset = align(*offset, uintptr(t.align))
if t.kind&kindNoPointers != 0 {
if !t.pointers() {
*offset += t.size
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment