diff --git a/lib/SIL/IR/SILType.cpp b/lib/SIL/IR/SILType.cpp index 6f44758b275a..d25b1e21dc28 100644 --- a/lib/SIL/IR/SILType.cpp +++ b/lib/SIL/IR/SILType.cpp @@ -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(ty)) { + if (isa(ty) || isa(ty) || + isa(ty) || isa(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(ty)) { + if (isa(ty) || isa(ty) || + isa(ty) || isa(ty)) { return false; }