aboutsummaryrefslogtreecommitdiff
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
commit8e23e6d27eb8147063053e606dbda098b7b52d7e (patch)
tree460c80e6ec911c6e99d52c9cd79acfb19bcfc41b
parent361cf980a7d976ef11a37b49567412b6b63a89d7 (diff)
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
-rw-r--r--lib/Analysis/CFG.cpp1
1 files changed, 1 insertions, 0 deletions
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: