]> granicus.if.org Git - clang/commitdiff
Keep GCC from complaining about falling off the end of the function.
authorMatt Beaumont-Gay <matthewbg@google.com>
Wed, 2 Mar 2011 23:25:06 +0000 (23:25 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Wed, 2 Mar 2011 23:25:06 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126897 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFG.cpp

index 2818cf6d6206e62c4bd5523ac47cadd69d3ac085..18bbbb1c86cfd6844dc2637d8295f665c23ca547 100644 (file)
@@ -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: