Skip to content

Commit 2a22c08

Browse files
committed
Allocate space for a single statement
1 parent 788fc32 commit 2a22c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/DerivedConformanceEquatableHashable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ static GuardStmt *returnIfNotEqualGuard(ASTContext &C,
270270
Expr *lhsExpr,
271271
Expr *rhsExpr) {
272272
SmallVector<StmtConditionElement, 1> conditions;
273-
SmallVector<ASTNode, 2> statements;
273+
SmallVector<ASTNode, 1> statements;
274274

275-
// First, generate the statements for the body of the guard.
275+
// First, generate the statement for the body of the guard.
276276
// return false
277277
auto falseExpr = new (C) BooleanLiteralExpr(false, SourceLoc(),
278278
/*Implicit*/true);

0 commit comments

Comments
 (0)