diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-01-18 20:40:35 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-01-18 20:40:35 +0000 |
| commit | c636806297c35c6ba143a2a423d47bc0bde23776 (patch) | |
| tree | b42f31a6c640dcdbf30530f0405fb9522fa5d42b /clang/lib | |
| parent | e563e08d8f5bb1aeebb717b412f9b75e08febe0f (diff) | |
| download | bcm5719-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.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) |

