Skip to content

Commit 48e39de

Browse files
angela-laarhborla
authored andcommitted
[Sema] .isolation member missing for optional function values
(cherry picked from commit e37008c)
1 parent d565ac6 commit 48e39de

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
@@ -9760,7 +9760,7 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
97609760

97619761
// Dynamically isolated function types have a magic '.isolation'
97629762
// member that extracts the isolation value.
9763-
if (auto *fn = dyn_cast<FunctionType>(instanceTy)) {
9763+
if (auto *fn = instanceTy->getAs<FunctionType>()) {
97649764
if (fn->getIsolation().isErased() &&
97659765
memberName.getBaseIdentifier().str() == "isolation") {
97669766
result.ViableCandidates.push_back(

0 commit comments

Comments
 (0)