From: Jordy Rose Date: Wed, 24 Aug 2011 23:41:46 +0000 (+0000) Subject: [analyzer] Better fix for the "missing return" error, from Ted. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3186597136677952aebfbcd24d3a8ef39cbd2d4;p=clang [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 --- 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 {