diff --git a/clang/AST/CFG.cpp b/clang/AST/CFG.cpp index c89e5803c668..cdde4af16939 100644 --- a/clang/AST/CFG.cpp +++ b/clang/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.");