File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1070,6 +1070,9 @@ bool SILType::isEscapable(const SILFunction &function) const {
10701070 function.getModule ().Types , 0 );
10711071 }
10721072
1073+ if (auto *moveOnlyTy = ty->getAs <SILMoveOnlyWrappedType>())
1074+ ty = moveOnlyTy->getInnerType ();
1075+
10731076 // TODO: Support ~Escapable in parameter packs.
10741077 //
10751078 // Treat all other SIL-specific types as Escapable.
Original file line number Diff line number Diff line change 22// RUN: -disable-experimental-parser-round-trip \
33// RUN: -enable-experimental-feature NonescapableTypes \
44// RUN: -enable-experimental-feature NoncopyableGenerics \
5- // RUN: -enable-experimental-lifetime-dependence-inference
5+ // RUN: -enable-experimental-lifetime-dependence-inference \
6+ // RUN: -disable-lifetime-dependence-diagnostics
67
78// REQUIRES: asserts
89// REQUIRES: swift_in_compiler
You can’t perform that action at this time.
0 commit comments