[clang] hurd: Fix build with -Werror,-Wswitch (PR #78520)

Jie Fu 傅杰 via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 17:41:51 PST 2024


DamonFool wrote:

> Is there a reason you put this first? Otherwise IMO it is slightly neater to put it last.

This bug had been fixed here: 
```
commit 1b60ddd920e0caadfa85cc7013b559d6453d7e3e
Author: Jie Fu <jiefu at tencent.com>
Date:   Thu Jan 18 07:34:09 2024 +0800

    [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.
```

Thanks.

https://github.com/llvm/llvm-project/pull/78520


More information about the cfe-commits mailing list