From c3186597136677952aebfbcd24d3a8ef39cbd2d4 Mon Sep 17 00:00:00 2001 From: Jordy Rose Date: Wed, 24 Aug 2011 23:41:46 +0000 Subject: [PATCH] [analyzer] Better fix for the "missing return" error, from Ted. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138526 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/CFRefCount.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/StaticAnalyzer/Core/CFRefCount.cpp b/lib/StaticAnalyzer/Core/CFRefCount.cpp index 75feba478d..3fa211bcb9 100644 --- a/lib/StaticAnalyzer/Core/CFRefCount.cpp +++ b/lib/StaticAnalyzer/Core/CFRefCount.cpp @@ -2700,10 +2700,10 @@ public: 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 { -- 2.50.1