aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/CFRefCount.cpp
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2011-08-24 23:41:46 +0000
committerJordy Rose <jediknil@belkadan.com>2011-08-24 23:41:46 +0000
commitc3186597136677952aebfbcd24d3a8ef39cbd2d4 (patch)
treef10b896d8657bd46623ad916db5152219555542c /lib/StaticAnalyzer/Core/CFRefCount.cpp
parent359bd07db718644736ce98f0d1653f4ac6c9cf22 (diff)
[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
Diffstat (limited to 'lib/StaticAnalyzer/Core/CFRefCount.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/CFRefCount.cpp6
1 files changed, 3 insertions, 3 deletions
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 {