Skip to content

Commit 16974a4

Browse files
authored
Merge pull request #59027 from xedin/rdar-93769727-5.7
[5.7][CSClosure] Specify stack capacity of a `SmallVector`
2 parents e210db4 + cead102 commit 16974a4

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)