mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #85971 from swiftlang/jepa-main4
SIL: Adjust pack `isa` after upstream LLVM implementation change
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user