Merge pull request #85971 from swiftlang/jepa-main4

SIL: Adjust pack `isa` after upstream LLVM implementation change
This commit is contained in:
Anthony Latsis
2025-12-12 22:20:39 +00:00
committed by GitHub

View File

@@ -1119,10 +1119,8 @@ bool SILType::isEscapable(const SILFunction &function) const {
// TODO: Support ~Escapable in parameter packs.
//
// Treat all other SIL-specific types as Escapable.
if (isa<SILBlockStorageType,
SILBoxType,
SILPackType,
SILTokenType>(ty)) {
if (isa<SILBlockStorageType>(ty) || isa<SILBoxType>(ty) ||
isa<SILPackType>(ty) || isa<SILTokenType>(ty)) {
return true;
}
return ty->isEscapable();
@@ -1157,10 +1155,8 @@ bool SILType::isMoveOnly(bool orWrapped) const {
return false;
// Treat all other SIL-specific types as Copyable.
if (isa<SILBlockStorageType,
SILBoxType,
SILPackType,
SILTokenType>(ty)) {
if (isa<SILBlockStorageType>(ty) || isa<SILBoxType>(ty) ||
isa<SILPackType>(ty) || isa<SILTokenType>(ty)) {
return false;
}