Skip to content

Commit 03a89c7

Browse files
author
David Ungar
committed
Reuse pointer
1 parent e8cb103 commit 03a89c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTScopeLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const ASTScopeImpl *ASTScopeImpl::findStartingScopeForLookup(
5858

5959
auto *const fileScope = sourceFile->getScope().impl;
6060
// Parser may have added decls to source file, since previous lookup
61-
sourceFile->getScope().impl->addNewDeclsToScopeTree();
61+
fileScope->addNewDeclsToScopeTree();
6262
if (name.isOperator())
6363
return fileScope; // operators always at file scope
6464

0 commit comments

Comments
 (0)