Skip to content

Commit a5ebc21

Browse files
authored
Merge pull request swiftlang#70993 from angela-laar/group-actor-iso-errors-fix-hash
[Sema] Update hash function for maps using ActorIsolation class
2 parents a1a975f + f8846e4 commit a5ebc21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckConcurrency.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ struct DenseMapInfo<swift::ReferencedActor::Kind> {
639639
}
640640

641641
static unsigned getHashValue(RefActor Val) {
642-
return static_cast<unsigned>(Val.getKind());
642+
return hash_value(Val);
643643
}
644644

645645
static bool isEqual(const RefActor &LHS, const RefActor &RHS) {

0 commit comments

Comments
 (0)