From: Jordy Rose Date: Wed, 24 Aug 2011 22:58:49 +0000 (+0000) Subject: [analyzer] Silence another incorrect warning ("control reaches end of non-void function") X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=359bd07db718644736ce98f0d1653f4ac6c9cf22;p=clang [analyzer] Silence another incorrect warning ("control reaches end of non-void function") git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/CFRefCount.cpp b/lib/StaticAnalyzer/Core/CFRefCount.cpp index 3c3bd3402e..75feba478d 100644 --- a/lib/StaticAnalyzer/Core/CFRefCount.cpp +++ b/lib/StaticAnalyzer/Core/CFRefCount.cpp @@ -2700,6 +2700,9 @@ public: return false; case LangOptions::GCOnly: return true; + default: + llvm_unreachable("Invalid/unknown GC mode."); + return false; } }