diff options
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp | 2 |
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) |