Skip to content

Commit 24f2032

Browse files
authored
Merge pull request swiftlang#59026 from xedin/rdar-93769727
[CSClosure] Specify stack capacity of a `SmallVector`
2 parents 88b2952 + 3977c89 commit 24f2032

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)