Remove double setting of invalid flag.

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.

llvm-svn: 286641
This commit is contained in:
Richard Trieu 2016-11-11 21:50:39 +00:00
parent 6cb849e2f0
commit 59e635a5cb
1 changed files with 0 additions and 2 deletions

View File

@ -10732,8 +10732,6 @@ Sema::FinalizeDeclaration(Decl *ThisDecl) {
if (auto *DD = dyn_cast<DecompositionDecl>(ThisDecl)) {
for (auto *BD : DD->bindings()) {
if (ThisDecl->isInvalidDecl())
BD->setInvalidDecl();
FinalizeDeclaration(BD);
}
}