Skip to content

Commit cead102

Browse files
committed
[CSClosure] Specify stack capacity of a SmallVector
`SmallVector` has two template arguments, so both have to be specified. Resolves: rdar://93769727 (cherry picked from commit 3977c89)
1 parent e210db4 commit cead102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSClosure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Expr *getVoidExpr(ASTContext &ctx) {
3838
/// Find any type variable references inside of an AST node.
3939
class TypeVariableRefFinder : public ASTWalker {
4040
/// A stack of all closures the walker encountered so far.
41-
SmallVector<DeclContext *> ClosureDCs;
41+
SmallVector<DeclContext *, 2> ClosureDCs;
4242

4343
ConstraintSystem &CS;
4444
ASTNode Parent;

0 commit comments

Comments
 (0)