From: Jordy Rose Date: Fri, 26 Aug 2011 20:32:01 +0000 (+0000) Subject: [analyzer] Remove a couple of unnecessary returns after llvm_unreachables. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=417162cc3bbc608372bdd0b6679a925de6874c88;p=clang [analyzer] Remove a couple of unnecessary returns after llvm_unreachables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138649 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/CFRefCount.cpp b/lib/StaticAnalyzer/Core/CFRefCount.cpp index 4154205232..07487f14e1 100644 --- a/lib/StaticAnalyzer/Core/CFRefCount.cpp +++ b/lib/StaticAnalyzer/Core/CFRefCount.cpp @@ -2693,7 +2693,6 @@ public: 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 @@ public: } llvm_unreachable("Invalid/unknown GC mode."); - return false; } bool isARCorGCEnabled(ASTContext &Ctx) const {