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 3a85829 commit 97227c2Copy full SHA for 97227c2
lib/Sema/TypeCheckDecl.cpp
@@ -6356,14 +6356,14 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
6356
6357
void visitDestructorDecl(DestructorDecl *DD) {
6358
if (!IsFirstPass) {
6359
- if (DD->getBody())
6360
- TC.definedFunctions.push_back(DD);
6361
-
6362
return;
6363
}
6364
6365
TC.validateDecl(DD);
6366
TC.checkDeclAttributes(DD);
+
+ if (DD->hasBody())
+ TC.definedFunctions.push_back(DD);
6367
6368
};
6369
} // end anonymous namespace
0 commit comments