r336493 - [analyzer] Fix -Wcovered-switch-default warning in MallocChecker.
Reka Kovacs via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 7 11:37:37 PDT 2018
Author: rkovacs
Date: Sat Jul 7 11:37:37 2018
New Revision: 336493
URL: http://llvm.org/viewvc/llvm-project?rev=336493&view=rev
Log:
[analyzer] Fix -Wcovered-switch-default warning in MallocChecker.
Remove unnecessary default case that caused buildbot failures.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp?rev=336493&r1=336492&r2=336493&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp Sat Jul 7 11:37:37 2018
@@ -2915,7 +2915,6 @@ std::shared_ptr<PathDiagnosticPiece> Mal
Msg = "Internal buffer is released because the object was destroyed";
break;
case AF_None:
- default:
llvm_unreachable("Unhandled allocation family!");
}
StackHint = new StackHintGeneratorForSymbol(Sym,
More information about the cfe-commits
mailing list