aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Analysis/CFG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp
index 18bbbb1c86..c433639ec1 100644
--- a/lib/Analysis/CFG.cpp
+++ b/lib/Analysis/CFG.cpp
@@ -2774,7 +2774,6 @@ CFG* CFG::buildCFG(const Decl *D, Stmt* Statement, ASTContext *C,
const CXXDestructorDecl *CFGImplicitDtor::getDestructorDecl() const {
switch (getKind()) {
- default: assert(0 && "Unknown CFGElement");
case CFGElement::Invalid:
case CFGElement::Statement:
case CFGElement::Initializer:
@@ -2800,6 +2799,8 @@ const CXXDestructorDecl *CFGImplicitDtor::getDestructorDecl() const {
// Not yet supported.
return 0;
}
+ assert(0 && "getKind() returned bogus value");
+ return 0;
}
bool CFGImplicitDtor::isNoReturn() const {