internal/gocore: reverse sense of indirect test CL 682075 is 100% wrong. IsIndir is true if the direct bit is *not* set. Change-Id: Ife8cc7b08e7051310e3f799bf6e58822f07d1733 Reviewed-on: https://go-review.googlesource.com/c/debug/+/690156 Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/internal/gocore/type.go b/internal/gocore/type.go index c384800..f75ff34 100644 --- a/internal/gocore/type.go +++ b/internal/gocore/type.go
@@ -664,7 +664,7 @@ typr := p.findRuntimeType(t) if tflagDirectIface, ok := p.rtConsts.find("internal/abi.TFlagDirectIface"); ok { // 1.26 and later, direct bit stored in tflags - return typr.TFlag()&uint8(tflagDirectIface) != 0 + return typr.TFlag()&uint8(tflagDirectIface) == 0 } // 1.25 and earlier, direct bit stored in kind field return typr.Kind_()&uint8(p.rtConsts.get("internal/abi.KindDirectIface")) == 0