In r286630, Decl::setInvalidDecl will automatically set the invalid flag for
BindingDecl for children in invalid DecompositionDecl. It no longer is
necessary to do a separate setInvalidDecl when finalizing a BindingDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286641
91177308-0d34-0410-b5e6-
96231b3b80d8
if (auto *DD = dyn_cast<DecompositionDecl>(ThisDecl)) {
for (auto *BD : DD->bindings()) {
- if (ThisDecl->isInvalidDecl())
- BD->setInvalidDecl();
FinalizeDeclaration(BD);
}
}