Skip to content

Commit e913712

Browse files
committed
Sema: drop @lvalue when building tuple conformance
1 parent d79f2c4 commit e913712

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/ConformanceLookup.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ static ProtocolConformanceRef getBuiltinTupleTypeConformance(
205205

206206
auto *tupleDecl = ctx.getBuiltinTupleDecl();
207207

208+
// Ignore @lvalue's within the tuple.
209+
type = type->getRValueType();
210+
208211
// Find the (unspecialized) conformance.
209212
SmallVector<ProtocolConformance *, 2> conformances;
210213
if (tupleDecl->lookupConformance(protocol, conformances)) {

0 commit comments

Comments
 (0)