Skip to content

Commit 472bd1f

Browse files
committed
[CSApply] Cache the type of a PackExpansionExpr in coerceToType.
1 parent 2be16b8 commit 472bd1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSApply.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7132,7 +7132,7 @@ Expr *ExprRewriter::coerceToType(Expr *expr, Type toType,
71327132

71337133
expansion->setPatternExpr(pattern);
71347134
expansion->setType(expansionTy);
7135-
return expansion;
7135+
return cs.cacheType(expansion);
71367136
}
71377137

71387138
case TypeKind::BuiltinTuple:

0 commit comments

Comments
 (0)