We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f1cde commit de94d8dCopy full SHA for de94d8d
lib/Sema/TypeCheckConcurrency.cpp
@@ -124,10 +124,13 @@ bool swift::usesFlowSensitiveIsolation(AbstractFunctionDecl const *fn) {
124
}
125
126
auto *dc = fn->getDeclContext();
127
+ if (!dc)
128
+ return false;
129
130
// Must be part of a nominal type.
131
auto *nominal = dc->getSelfNominalTypeDecl();
- assert(nominal && "init/deinit not part of a nominal?");
132
+ if (!nominal)
133
134
135
// If it's part of an actor type, then its deinit and some of its inits use
136
// flow-isolation.
0 commit comments