We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef8360 commit 5d5776bCopy full SHA for 5d5776b
lib/AST/ASTScopeCreation.cpp
@@ -658,9 +658,10 @@ class ScopeCreator final {
658
ASTScopeAssert(!n.isDecl(DeclKind::Accessor),
659
"Should not see accessors here");
660
// Can occur in illegal code
661
+ // non-empty brace stmt could define a new insertion point
662
if (auto *const s = n.dyn_cast<Stmt *>()) {
663
if (auto *const bs = dyn_cast<BraceStmt>(s))
- ASTScopeAssert(bs->empty(), "Might mess up insertion point");
664
+ return !bs->empty();
665
}
666
return !n.isDecl(DeclKind::Var);
667
0 commit comments