r286641 - Remove double setting of invalid flag.
Richard Trieu via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 11 13:50:39 PST 2016
Author: rtrieu
Date: Fri Nov 11 15:50:39 2016
New Revision: 286641
URL: http://llvm.org/viewvc/llvm-project?rev=286641&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=286641&r1=286640&r2=286641&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Nov 11 15:50:39 2016
@@ -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);
}
}
More information about the cfe-commits
mailing list