summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
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
commit34a83e911f03cbc0c3b6da0519373a01a15e610b (patch)
treecd96601a6dbbb1f6cea1605ee193dd7378008311 /clang/lib/StaticAnalyzer
parent763982b82d9007cbaade2e623a033e32fedd3c44 (diff)
downloadbcm5719-llvm-34a83e911f03cbc0c3b6da0519373a01a15e610b.tar.gz
bcm5719-llvm-34a83e911f03cbc0c3b6da0519373a01a15e610b.zip
[analyzer] Silence another incorrect warning ("control reaches end of non-void function")
llvm-svn: 138510
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Core/CFRefCount.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp b/clang/lib/StaticAnalyzer/Core/CFRefCount.cpp
index 3c3bd3402ee..75feba478d9 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;
}
}
OpenPOWER on IntegriCloud