Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions lib/SIL/IR/SILType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
}

Expand Down