Skip to content

Commit dee62b6

Browse files
committed
narrow move-only requirement to lexical borrow scopes
1 parent 77a0192 commit dee62b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6366,5 +6366,5 @@ ASTContext::lookupExecutablePluginByModuleName(Identifier moduleName) {
63666366

63676367
bool ASTContext::supportsMoveOnlyTypes() const {
63686368
// currently the only thing holding back whether the types can appear is this.
6369-
return SILOpts.LexicalLifetimes == LexicalLifetimesOption::On;
6369+
return SILOpts.LexicalLifetimes != LexicalLifetimesOption::Off;
63706370
}

0 commit comments

Comments
 (0)