From: Reka Kovacs Date: Sat, 7 Jul 2018 18:37:37 +0000 (+0000) Subject: [analyzer] Fix -Wcovered-switch-default warning in MallocChecker. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8cfadd9a957e1fdd6dd289c957e31dca395d5c8;p=clang [analyzer] Fix -Wcovered-switch-default warning in MallocChecker. Remove unnecessary default case that caused buildbot failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336493 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index c8c7a5a573..fa50014b07 100644 --- a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -2915,7 +2915,6 @@ std::shared_ptr 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,