]> granicus.if.org Git - clang/commitdiff
[analyzer] Remove a couple of unnecessary returns after llvm_unreachables.
authorJordy Rose <jediknil@belkadan.com>
Fri, 26 Aug 2011 20:32:01 +0000 (20:32 +0000)
committerJordy Rose <jediknil@belkadan.com>
Fri, 26 Aug 2011 20:32:01 +0000 (20:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138649 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/CFRefCount.cpp

index 41542052325aa8627bfea272ff5007213718e6d5..07487f14e1ebbd63f46ed9c0743edb2fd5c59e28 100644 (file)
@@ -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 {