Skip to content

Commit c3bc3d3

Browse files
authored
Merge pull request swiftlang#72331 from xedin/xfail-move-only-cxx-test-with-ncgenerics-enabled
[SIL] Fix a couple of test-cases with NCGenerics enabled
2 parents dc40552 + 840ef47 commit c3bc3d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/SIL/IR/SILType.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

test/SIL/lifetime_dependence_buffer_view_test.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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

0 commit comments

Comments
 (0)