Skip to content

Commit 27fdc9a

Browse files
committed
Sema: Use an AnyFunctionRef instead of a void* in TypeCheckEffects.cpp
1 parent afa5a88 commit 27fdc9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeCheckEffects.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ class Classification {
668668
class ApplyClassifier {
669669
/// The key to this cache is the function decl or closure being analyzed. The
670670
/// value in this cache is nil when the body has an error detected in it.
671-
llvm::DenseMap<void*, Optional<ThrowingKind>> Cache;
671+
llvm::DenseMap<AnyFunctionRef, Optional<ThrowingKind>> Cache;
672672

673673
public:
674674
DeclContext *RethrowsDC = nullptr;
@@ -953,7 +953,7 @@ class ApplyClassifier {
953953
};
954954

955955
Optional<ThrowingKind>
956-
classifyThrowingFunctionBodyImpl(void *key, BraceStmt *body,
956+
classifyThrowingFunctionBodyImpl(AnyFunctionRef key, BraceStmt *body,
957957
bool allowNone) {
958958
// Look for the key in the cache.
959959
auto existingIter = Cache.find(key);

0 commit comments

Comments
 (0)