Skip to content

Commit dea291c

Browse files
Merge pull request #85971 from swiftlang/jepa-main4
SIL: Adjust pack `isa` after upstream LLVM implementation change
2 parents a2529ad + 9b2a7ef commit dea291c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/SIL/IR/SILType.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)