Skip to content

Commit e37008c

Browse files
committed
[Sema] .isolation member missing for optional function values
1 parent 1be8e86 commit e37008c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9766,7 +9766,7 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
97669766

97679767
// Dynamically isolated function types have a magic '.isolation'
97689768
// member that extracts the isolation value.
9769-
if (auto *fn = dyn_cast<FunctionType>(instanceTy)) {
9769+
if (auto *fn = instanceTy->getAs<FunctionType>()) {
97709770
if (fn->getIsolation().isErased() &&
97719771
memberName.getBaseIdentifier().str() == "isolation") {
97729772
result.ViableCandidates.push_back(

0 commit comments

Comments
 (0)