[clang] 1b60ddd - [Hurd] Fix -Wswitch in Hurd::getDynamicLinker (NFC)
Jie Fu via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 17 15:35:07 PST 2024
Author: Jie Fu
Date: 2024-01-18T07:34:09+08:00
New Revision: 1b60ddd920e0caadfa85cc7013b559d6453d7e3e
URL: https://github.com/llvm/llvm-project/commit/1b60ddd920e0caadfa85cc7013b559d6453d7e3e
DIFF: https://github.com/llvm/llvm-project/commit/1b60ddd920e0caadfa85cc7013b559d6453d7e3e.diff
LOG: [Hurd] Fix -Wswitch in Hurd::getDynamicLinker (NFC)
llvm-project/clang/lib/Driver/ToolChains/Hurd.cpp:137:11:
error: 60 enumeration values not handled in switch: 'UnknownArch', 'arm', 'armeb'... [-Werror,-Wswitch]
switch (getArch()) {
^~~~~~~~~
1 error generated.
Added:
Modified:
clang/lib/Driver/ToolChains/Hurd.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Hurd.cpp b/clang/lib/Driver/ToolChains/Hurd.cpp
index 5074eda5f41559..0bc114b90ffc09 100644
--- a/clang/lib/Driver/ToolChains/Hurd.cpp
+++ b/clang/lib/Driver/ToolChains/Hurd.cpp
@@ -139,6 +139,8 @@ std::string Hurd::getDynamicLinker(const ArgList &Args) const {
return "/lib/ld.so";
case llvm::Triple::x86_64:
return "/lib/ld-x86-64.so.1";
+ default:
+ break;
}
llvm_unreachable("unsupported architecture");
More information about the cfe-commits
mailing list