r256393 - use auto for obvious type; NFC

Sanjay Patel via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 24 13:11:29 PST 2015


Author: spatel
Date: Thu Dec 24 15:11:29 2015
New Revision: 256393

URL: http://llvm.org/viewvc/llvm-project?rev=256393&view=rev
Log:
use auto for obvious type; NFC

Modified:
    cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp

Modified: cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp?rev=256393&r1=256392&r2=256393&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp (original)
+++ cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp Thu Dec 24 15:11:29 2015
@@ -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);




More information about the cfe-commits mailing list