summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-01-18 20:40:35 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-01-18 20:40:35 +0000
commitc636806297c35c6ba143a2a423d47bc0bde23776 (patch)
treeb42f31a6c640dcdbf30530f0405fb9522fa5d42b /clang/lib
parente563e08d8f5bb1aeebb717b412f9b75e08febe0f (diff)
downloadbcm5719-llvm-c636806297c35c6ba143a2a423d47bc0bde23776.tar.gz
bcm5719-llvm-c636806297c35c6ba143a2a423d47bc0bde23776.zip
Fix MSVC "not all control paths return a value" warning. NFCI.
llvm-svn: 351588
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
index b7a866d3ff8..f546112f960 100644
--- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
@@ -38,6 +38,7 @@ StringRef RefCountBug::bugTypeToName(RefCountBug::RefCountBugType BT) {
case LeakAtReturn:
return "Leak of returned object";
}
+ llvm_unreachable("Unknown RefCountBugType");
}
StringRef RefCountBug::getDescription() const {
@@ -60,6 +61,7 @@ StringRef RefCountBug::getDescription() const {
case LeakAtReturn:
return "";
}
+ llvm_unreachable("Unknown RefCountBugType");
}
RefCountBug::RefCountBug(const CheckerBase *Checker, RefCountBugType BT)
OpenPOWER on IntegriCloud