From: Richard Trieu Date: Fri, 11 Nov 2016 21:50:39 +0000 (+0000) Subject: Remove double setting of invalid flag. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c1ca2804043b7fa0514039d50b0d9af2c28e775;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286641 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 662d19aa8c..7f443b3d3f 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -10732,8 +10732,6 @@ Sema::FinalizeDeclaration(Decl *ThisDecl) { if (auto *DD = dyn_cast(ThisDecl)) { for (auto *BD : DD->bindings()) { - if (ThisDecl->isInvalidDecl()) - BD->setInvalidDecl(); FinalizeDeclaration(BD); } }