aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-03-03 00:48:05 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-03-03 00:48:05 +0000
commit2ae00543d6e1bd7dba0ce2dacec740bb6049a2dd (patch)
tree0ba5c7882644edf192f614e40d43d9e56b4b6814 /lib/Analysis
parent8e23e6d27eb8147063053e606dbda098b7b52d7e (diff)
Let's go with John and Ted's preferred fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-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 {