summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/AST/CFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/AST/CFG.cpp b/clang/AST/CFG.cpp
index 1f08e60a3f4..c89e5803c66 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<DefaultStmt>(D))
+ else if (DefaultStmt* D = dyn_cast<DefaultStmt>(S))
OS << "default";
else
assert(false && "Invalid label statement in CFGBlock.");
OpenPOWER on IntegriCloud