diff options
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/runtime/go-reflect-map.c')
-rw-r--r-- | llgo/third_party/gofrontend/libgo/runtime/go-reflect-map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llgo/third_party/gofrontend/libgo/runtime/go-reflect-map.c b/llgo/third_party/gofrontend/libgo/runtime/go-reflect-map.c index 58e1b34a1ea..36f31025d30 100644 --- a/llgo/third_party/gofrontend/libgo/runtime/go-reflect-map.c +++ b/llgo/third_party/gofrontend/libgo/runtime/go-reflect-map.c @@ -151,5 +151,6 @@ extern _Bool ismapkey (const struct __go_type_descriptor *) _Bool ismapkey (const struct __go_type_descriptor *typ) { - return typ != NULL && typ->__hashfn != __go_type_hash_error; + return (typ != NULL + && (void *) typ->__hashfn->fn != (void *) __go_type_hash_error); } |