From: Stephen Kelly Date: Fri, 18 Jan 2019 22:15:09 +0000 (+0000) Subject: [ASTDump] NFC: Move variable into if() statement X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8575cc63363a2ed6e59473e0f939fb7a49a860a9;p=clang [ASTDump] NFC: Move variable into if() statement git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351605 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp index 2b9b132eea..99e4a1bc58 100644 --- a/lib/AST/ASTDumper.cpp +++ b/lib/AST/ASTDumper.cpp @@ -513,8 +513,7 @@ void ASTDumper::dumpDecl(const Decl *D) { // Decls within functions are visited by the body. if (!isa(*D) && !isa(*D)) { - auto DC = dyn_cast(D); - if (DC) + if (const auto *DC = dyn_cast(D)) dumpDeclContext(DC); } });