File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1119,10 +1119,8 @@ bool SILType::isEscapable(const SILFunction &function) const {
11191119 // TODO: Support ~Escapable in parameter packs.
11201120 //
11211121 // Treat all other SIL-specific types as Escapable.
1122- if (isa<SILBlockStorageType,
1123- SILBoxType,
1124- SILPackType,
1125- SILTokenType>(ty)) {
1122+ if (isa<SILBlockStorageType>(ty) || isa<SILBoxType>(ty) ||
1123+ isa<SILPackType>(ty) || isa<SILTokenType>(ty)) {
11261124 return true ;
11271125 }
11281126 return ty->isEscapable ();
@@ -1157,10 +1155,8 @@ bool SILType::isMoveOnly(bool orWrapped) const {
11571155 return false ;
11581156
11591157 // Treat all other SIL-specific types as Copyable.
1160- if (isa<SILBlockStorageType,
1161- SILBoxType,
1162- SILPackType,
1163- SILTokenType>(ty)) {
1158+ if (isa<SILBlockStorageType>(ty) || isa<SILBoxType>(ty) ||
1159+ isa<SILPackType>(ty) || isa<SILTokenType>(ty)) {
11641160 return false ;
11651161 }
11661162
You can’t perform that action at this time.
0 commit comments