[clang] f59bb40 - Attempt to fix failing build-bot with [-Werror,-Wcovered-switch-default]
Gabor Marton via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 20 10:05:15 PDT 2020
Author: Gabor Marton
Date: 2020-03-20T18:04:55+01:00
New Revision: f59bb40e361c061adaa19e988f1f5769d3b8fac7
URL: https://github.com/llvm/llvm-project/commit/f59bb40e361c061adaa19e988f1f5769d3b8fac7
DIFF: https://github.com/llvm/llvm-project/commit/f59bb40e361c061adaa19e988f1f5769d3b8fac7.diff
LOG: Attempt to fix failing build-bot with [-Werror,-Wcovered-switch-default]
Added:
Modified:
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
index 590dc8b67690..ff296e7ea46b 100644
--- a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
@@ -162,8 +162,6 @@ class StdLibraryFunctionsChecker
case WithinRange:
Tmp.Kind = OutOfRange;
break;
- default:
- llvm_unreachable("Unknown RangeConstraint kind!");
}
return std::make_shared<RangeConstraint>(Tmp);
}
More information about the cfe-commits
mailing list