Fix MSVC "not all control paths return a value" warning. NFCI.

llvm-svn: 351588
This commit is contained in:
Simon Pilgrim 2019-01-18 20:40:35 +00:00
parent e563e08d8f
commit c636806297
1 changed files with 2 additions and 0 deletions

View File

@ -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)