From: Hartmut Kaiser Date: Sun, 16 Sep 2007 00:31:07 +0000 (+0000) Subject: Fixed a problem VC++ revealed in release mode. Please verify. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bfce24b79a443ae2a9cdcf7fdc1a2ab7c6eb05f;p=clang Fixed a problem VC++ revealed in release mode. Please verify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41996 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/CFG.cpp b/AST/CFG.cpp index 1f08e60a3f..c89e5803c6 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(D)) + else if (DefaultStmt* D = dyn_cast(S)) OS << "default"; else assert(false && "Invalid label statement in CFGBlock.");