]> granicus.if.org Git - clang/commitdiff
fix warning.
authorChris Lattner <sabre@nondot.org>
Sun, 16 Sep 2007 19:11:53 +0000 (19:11 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 16 Sep 2007 19:11:53 +0000 (19:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42006 91177308-0d34-0410-b5e6-96231b3b80d8

AST/CFG.cpp

index c89e5803c66854164cb16dbcd35ef62e996ed806..cdde4af16939724964fdf0812dff057c7d668f5e 100644 (file)
@@ -1132,7 +1132,7 @@ void print_block(std::ostream& OS, const CFG* cfg, const CFGBlock& B,
         C->getRHS()->printPretty(OS);
       }
     }  
-    else if (DefaultStmt* D = dyn_cast<DefaultStmt>(S))
+    else if (isa<DefaultStmt>(S))
       OS << "default";
     else
       assert(false && "Invalid label statement in CFGBlock.");