Skip to content

Commit 15e157e

Browse files
committed
hurd: Fix build with -Werror,-Wswitch
We do not handle all architectures, llvm_unreachable is called after the switch, so we can just break. Fixes https://lab.llvm.org/buildbot/#/builders/19/builds/23702
1 parent 0f67c7a commit 15e157e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Driver/ToolChains/Hurd.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ std::string Hurd::getDynamicLinker(const ArgList &Args) const {
139139
return "/lib/ld.so";
140140
case llvm::Triple::x86_64:
141141
return "/lib/ld-x86-64.so.1";
142+
default:
143+
break;
142144
}
143145

144146
llvm_unreachable("unsupported architecture");

0 commit comments

Comments
 (0)