Skip to content

Commit f8846e4

Browse files
committed
[Sema] Update hash function for maps using ActorIsolation class
1 parent 4b8e41b commit f8846e4

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
@@ -631,7 +631,7 @@ struct DenseMapInfo<swift::ReferencedActor::Kind> {
631631
}
632632

633633
static unsigned getHashValue(RefActor Val) {
634-
return static_cast<unsigned>(Val.getKind());
634+
return hash_value(Val);
635635
}
636636

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

0 commit comments

Comments
 (0)