Conversation
|
@llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Samuel Thibault (sthibaul) ChangesWe 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 Full diff: https://github.com/llvm/llvm-project/pull/78520.diff 1 Files Affected:
diff --git a/clang/lib/Driver/ToolChains/Hurd.cpp b/clang/lib/Driver/ToolChains/Hurd.cpp
index 5074eda5f41559..36499fb11ad88f 100644
--- a/clang/lib/Driver/ToolChains/Hurd.cpp
+++ b/clang/lib/Driver/ToolChains/Hurd.cpp
@@ -135,6 +135,8 @@ Tool *Hurd::buildAssembler() const {
std::string Hurd::getDynamicLinker(const ArgList &Args) const {
switch (getArch()) {
+ default:
+ break;
case llvm::Triple::x86:
return "/lib/ld.so";
case llvm::Triple::x86_64:
|
|
Drive-by: is the |
Hurd triplets are only defined for x86 and x86_64. |
fmayer
left a comment
There was a problem hiding this comment.
Is there a reason you put this first? Otherwise IMO it is slightly neater to put it last.
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
No particular reason.
Done so. |
This bug had been fixed here: Thanks. |
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