[cfe-commits] r138649 - /cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
Jordy Rose
jediknil at belkadan.com
Fri Aug 26 13:32:01 PDT 2011
Author: jrose
Date: Fri Aug 26 15:32:01 2011
New Revision: 138649
URL: http://llvm.org/viewvc/llvm-project?rev=138649&view=rev
Log:
[analyzer] Remove a couple of unnecessary returns after llvm_unreachables.
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=138649&r1=138648&r2=138649&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp Fri Aug 26 15:32:01 2011
@@ -2693,7 +2693,6 @@
switch (GCMode) {
case LangOptions::HybridGC:
llvm_unreachable("GC mode not set yet!");
- return true;
case LangOptions::NonGC:
return false;
case LangOptions::GCOnly:
@@ -2701,7 +2700,6 @@
}
llvm_unreachable("Invalid/unknown GC mode.");
- return false;
}
bool isARCorGCEnabled(ASTContext &Ctx) const {
More information about the cfe-commits
mailing list