forked from OSchip/llvm-project
Fix MSVC "not all control paths return a value" warning. NFCI.
llvm-svn: 351588
This commit is contained in:
parent
e563e08d8f
commit
c636806297
|
@ -38,6 +38,7 @@ StringRef RefCountBug::bugTypeToName(RefCountBug::RefCountBugType BT) {
|
||||||
case LeakAtReturn:
|
case LeakAtReturn:
|
||||||
return "Leak of returned object";
|
return "Leak of returned object";
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unknown RefCountBugType");
|
||||||
}
|
}
|
||||||
|
|
||||||
StringRef RefCountBug::getDescription() const {
|
StringRef RefCountBug::getDescription() const {
|
||||||
|
@ -60,6 +61,7 @@ StringRef RefCountBug::getDescription() const {
|
||||||
case LeakAtReturn:
|
case LeakAtReturn:
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unknown RefCountBugType");
|
||||||
}
|
}
|
||||||
|
|
||||||
RefCountBug::RefCountBug(const CheckerBase *Checker, RefCountBugType BT)
|
RefCountBug::RefCountBug(const CheckerBase *Checker, RefCountBugType BT)
|
||||||
|
|
Loading…
Reference in New Issue