Skip to content

Commit dc17c5e

Browse files
committed
skip invalid Decls
1 parent 744eaee commit dc17c5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: source/AST/ASTVisitor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1484,10 +1484,10 @@ TraverseDecl(
14841484
Args&&... args)
14851485
{
14861486
Assert(D);
1487-
if(D->isImplicit())
1487+
if(D->isInvalidDecl() || D->isImplicit())
14881488
return true;
14891489

1490-
[[maybe_unused]] AccessSpecifier access =
1490+
AccessSpecifier access =
14911491
D->getAccessUnsafe();
14921492

14931493
switch(D->getKind())

0 commit comments

Comments
 (0)