summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFG.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-03-02 23:25:06 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-03-02 23:25:06 +0000
commit0532897f37b2dc0555be57875d4eec60ee750b99 (patch)
tree3c1607c4447ca4926858d6c178fefb313275e783 /clang/lib/Analysis/CFG.cpp
parente5fe543878fb96cfc317e3e228551f7caa92b380 (diff)
downloadbcm5719-llvm-0532897f37b2dc0555be57875d4eec60ee750b99.tar.gz
bcm5719-llvm-0532897f37b2dc0555be57875d4eec60ee750b99.zip
Keep GCC from complaining about falling off the end of the function.
llvm-svn: 126897
Diffstat (limited to 'clang/lib/Analysis/CFG.cpp')
-rw-r--r--clang/lib/Analysis/CFG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 2818cf6d620..18bbbb1c86c 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/lib/Analysis/CFG.cpp
@@ -2774,6 +2774,7 @@ 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:
OpenPOWER on IntegriCloud