]> granicus.if.org Git - clang/commitdiff
use auto for obvious type; NFC
authorSanjay Patel <spatel@rotateright.com>
Thu, 24 Dec 2015 21:11:29 +0000 (21:11 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 24 Dec 2015 21:11:29 +0000 (21:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256393 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CoverageMappingGen.cpp

index 2486a496a285ca13e12fb58447682fcbdd4a83cb..eb6edeac4427452b26501dd50e0688f5de458c64 100644 (file)
@@ -785,7 +785,7 @@ struct CounterCoverageMappingBuilder
     else
       pushRegion(Count, getStart(S));
 
-    if (const CaseStmt *CS = dyn_cast<CaseStmt>(S)) {
+    if (const auto *CS = dyn_cast<CaseStmt>(S)) {
       Visit(CS->getLHS());
       if (const Expr *RHS = CS->getRHS())
         Visit(RHS);