[cfe-commits] r138526 - /cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
Jordy Rose
jediknil at belkadan.com
Wed Aug 24 16:41:46 PDT 2011
Author: jrose
Date: Wed Aug 24 18:41:46 2011
New Revision: 138526
URL: http://llvm.org/viewvc/llvm-project?rev=138526&view=rev
Log:
[analyzer] Better fix for the "missing return" error, from Ted.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp?rev=138526&r1=138525&r2=138526&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp Wed Aug 24 18:41:46 2011
@@ -2700,10 +2700,10 @@
return false;
case LangOptions::GCOnly:
return true;
- default:
- llvm_unreachable("Invalid/unknown GC mode.");
- return false;
}
+
+ llvm_unreachable("Invalid/unknown GC mode.");
+ return false;
}
bool isARCorGCEnabled(ASTContext &Ctx) const {
More information about the cfe-commits
mailing list