forked from OSchip/llvm-project
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:
parent
6cb849e2f0
commit
59e635a5cb
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue