From: Chris Lattner Date: Sun, 16 Sep 2007 19:11:53 +0000 (+0000) Subject: fix warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f874c13463449f47d125c85df78010d48eaae75f;p=clang fix warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42006 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/CFG.cpp b/AST/CFG.cpp index c89e5803c6..cdde4af169 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -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(S)) + else if (isa(S)) OS << "default"; else assert(false && "Invalid label statement in CFGBlock.");