[cfe-commits] r138510 - /cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp

Jordy Rose jediknil at belkadan.com
Wed Aug 24 15:58:49 PDT 2011


Author: jrose
Date: Wed Aug 24 17:58:49 2011
New Revision: 138510

URL: http://llvm.org/viewvc/llvm-project?rev=138510&view=rev
Log:
[analyzer] Silence another incorrect warning ("control reaches end of non-void function")

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp?rev=138510&r1=138509&r2=138510&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp Wed Aug 24 17:58:49 2011
@@ -2700,6 +2700,9 @@
       return false;
     case LangOptions::GCOnly:
       return true;
+    default:
+      llvm_unreachable("Invalid/unknown GC mode.");
+      return false;
     }
   }
 





More information about the cfe-commits mailing list