aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/CFRefCount.cpp
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2011-08-24 22:58:49 +0000
committerJordy Rose <jediknil@belkadan.com>2011-08-24 22:58:49 +0000
commit359bd07db718644736ce98f0d1653f4ac6c9cf22 (patch)
tree8ce22c2328de8c11bcd432211ecd667c6de83d40 /lib/StaticAnalyzer/Core/CFRefCount.cpp
parent4f227aaad2143f74ef26ea8b06fa4d73de4d3fa2 (diff)
[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
Diffstat (limited to 'lib/StaticAnalyzer/Core/CFRefCount.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/CFRefCount.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}
}