Skip to content

Commit cefaed0

Browse files
randall77gopherbot
authored andcommitted
reflect: fix noswiss builder
Missed this change in CL 681936 Fixes #74808 Change-Id: I30f6402177c5f8efe9bd11d50fad1770a22762c5 Reviewed-on: https://go-review.googlesource.com/c/go/+/691675 Reviewed-by: Cuong Manh Le <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Mark Freeman <[email protected]> Auto-Submit: Keith Randall <[email protected]>
1 parent 3aa1b00 commit cefaed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/map_noswiss.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func MapOf(key, elem Type) Type {
6969
var imap any = (map[unsafe.Pointer]unsafe.Pointer)(nil)
7070
mt := **(**mapType)(unsafe.Pointer(&imap))
7171
mt.Str = resolveReflectName(newName(s, "", false, false))
72-
mt.TFlag = 0
72+
mt.TFlag = abi.TFlagDirectIface
7373
mt.Hash = fnv1(etyp.Hash, 'm', byte(ktyp.Hash>>24), byte(ktyp.Hash>>16), byte(ktyp.Hash>>8), byte(ktyp.Hash))
7474
mt.Key = ktyp
7575
mt.Elem = etyp

0 commit comments

Comments
 (0)