Commit eaa25ac1 authored by Austin Clements's avatar Austin Clements

Fix bug where typeArrayMap was using the address of the

pointer to the Type instead of the address of the Type.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=32265
CL=32279
parent 18840f54
...@@ -49,7 +49,7 @@ func hashTypeArray(key []Type) uintptr { ...@@ -49,7 +49,7 @@ func hashTypeArray(key []Type) uintptr {
if t == nil { if t == nil {
continue; continue;
} }
addr := reflect.NewValue(t).Addr(); addr := reflect.NewValue(t).(*reflect.PtrValue).Get();
hash ^= addr; hash ^= addr;
} }
return hash; return hash;
......
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