Skip to content

Commit 97227c2

Browse files
committed
Sema: DeclChecker::visitDestructorDecl() does everything in the 'first pass'
1 parent 3a85829 commit 97227c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6356,14 +6356,14 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
63566356

63576357
void visitDestructorDecl(DestructorDecl *DD) {
63586358
if (!IsFirstPass) {
6359-
if (DD->getBody())
6360-
TC.definedFunctions.push_back(DD);
6361-
63626359
return;
63636360
}
63646361

63656362
TC.validateDecl(DD);
63666363
TC.checkDeclAttributes(DD);
6364+
6365+
if (DD->hasBody())
6366+
TC.definedFunctions.push_back(DD);
63676367
}
63686368
};
63696369
} // end anonymous namespace

0 commit comments

Comments
 (0)