From: Matt Beaumont-Gay Date: Wed, 2 Mar 2011 23:25:06 +0000 (+0000) Subject: Keep GCC from complaining about falling off the end of the function. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e23e6d27eb8147063053e606dbda098b7b52d7e;p=clang Keep GCC from complaining about falling off the end of the function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126897 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index 2818cf6d62..18bbbb1c86 100644 --- a/lib/Analysis/CFG.cpp +++ b/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: