summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorReka Kovacs <rekanikolett@gmail.com>2018-07-07 18:37:37 +0000
committerReka Kovacs <rekanikolett@gmail.com>2018-07-07 18:37:37 +0000
commite0dae15d914f927e3f77d290dd188979221575cc (patch)
tree5672399cf7cdf175f55e0ba77099f019b45545d3 /clang/lib/StaticAnalyzer
parent23f9eddabe8f76164890afa3979d3c9d343b3612 (diff)
downloadbcm5719-llvm-e0dae15d914f927e3f77d290dd188979221575cc.tar.gz
bcm5719-llvm-e0dae15d914f927e3f77d290dd188979221575cc.zip
[analyzer] Fix -Wcovered-switch-default warning in MallocChecker.
Remove unnecessary default case that caused buildbot failures. llvm-svn: 336493
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
index c8c7a5a5735..fa50014b07a 100644
--- a/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
@@ -2915,7 +2915,6 @@ std::shared_ptr<PathDiagnosticPiece> MallocChecker::MallocBugVisitor::VisitNode(
Msg = "Internal buffer is released because the object was destroyed";
break;
case AF_None:
- default:
llvm_unreachable("Unhandled allocation family!");
}
StackHint = new StackHintGeneratorForSymbol(Sym,
OpenPOWER on IntegriCloud