From 34a83e911f03cbc0c3b6da0519373a01a15e610b Mon Sep 17 00:00:00 2001 From: Jordy Rose Date: Wed, 24 Aug 2011 22:58:49 +0000 Subject: [PATCH] [analyzer] Silence another incorrect warning ("control reaches end of non-void function") llvm-svn: 138510 --- clang/lib/StaticAnalyzer/Core/CFRefCount.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp b/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp index 3c3bd3402ee0..75feba478d93 100644 --- a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp +++ b/clang/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; } } -- GitLab