Skip to content

Commit c7e603d

Browse files
author
David Ungar
committed
Fix overly restrictive assertion, for -dump-scope-maps case
1 parent 03a89c7 commit c7e603d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/AST/Module.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,8 +1745,7 @@ StringRef SourceFile::getFilename() const {
17451745
}
17461746

17471747
ASTScope &SourceFile::getScope() {
1748-
assert(getASTContext().LangOpts.EnableASTScopeLookup &&
1749-
isSuitableForASTScopes() && "Should not be creating scope tree");
1748+
assert(isSuitableForASTScopes() && "Should not be creating scope tree");
17501749
if (!Scope)
17511750
Scope = std::unique_ptr<ASTScope>(new (getASTContext()) ASTScope(this));
17521751
return *Scope.get();

0 commit comments

Comments
 (0)