Skip to content

Commit f5f0101

Browse files
author
David Ungar
committed
Fix ASTScope PatternEntryDeclScope::beCurrent typo
1 parent 5085e45 commit f5f0101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTScopeCreation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ void PatternEntryDeclScope::beCurrent() {
17881788
unsigned varCount = 0;
17891789
getPatternEntry().getPattern()->forEachVariable(
17901790
[&](VarDecl *) { ++varCount; });
1791-
varCountWhenLastExpanded = 0;
1791+
varCountWhenLastExpanded = varCount;
17921792
}
17931793
bool PatternEntryDeclScope::isCurrent() const {
17941794
if (initWhenLastExpanded != getPatternEntry().getOriginalInit())

0 commit comments

Comments
 (0)