[cfe-commits] r126907 - /cfe/trunk/lib/Analysis/CFG.cpp
Matt Beaumont-Gay
matthewbg at google.com
Wed Mar 2 16:48:05 PST 2011
Author: matthewbg
Date: Wed Mar 2 18:48:05 2011
New Revision: 126907
URL: http://llvm.org/viewvc/llvm-project?rev=126907&view=rev
Log:
Let's go with John and Ted's preferred fix.
Modified:
cfe/trunk/lib/Analysis/CFG.cpp
Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=126907&r1=126906&r2=126907&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Wed Mar 2 18:48:05 2011
@@ -2774,7 +2774,6 @@
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 @@
// Not yet supported.
return 0;
}
+ assert(0 && "getKind() returned bogus value");
+ return 0;
}
bool CFGImplicitDtor::isNoReturn() const {
More information about the cfe-commits
mailing list