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 {
1070
1070
function.getModule ().Types , 0 );
1071
1071
}
1072
1072
1073
+ if (auto *moveOnlyTy = ty->getAs <SILMoveOnlyWrappedType>())
1074
+ ty = moveOnlyTy->getInnerType ();
1075
+
1073
1076
// TODO: Support ~Escapable in parameter packs.
1074
1077
//
1075
1078
// Treat all other SIL-specific types as Escapable.
Original file line number Diff line number Diff line change 2
2
// RUN: -disable-experimental-parser-round-trip \
3
3
// RUN: -enable-experimental-feature NonescapableTypes \
4
4
// 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
6
7
7
8
// REQUIRES: asserts
8
9
// REQUIRES: swift_in_compiler
You can’t perform that action at this time.
0 commit comments