summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit86b900bacac008decf63468beb9251c545cebb89 (patch)
tree0f01afdf419c9ad814f7cae0916224935a6afbbd /clang/lib
parentd58c8d12ab41fa67c3947f78629282f27d66d732 (diff)
downloadbcm5719-llvm-86b900bacac008decf63468beb9251c545cebb89.tar.gz
bcm5719-llvm-86b900bacac008decf63468beb9251c545cebb89.zip
Let's go with John and Ted's preferred fix.
llvm-svn: 126907
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Analysis/CFG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 18bbbb1c86c..c433639ec1a 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud