[PATCH] D79745: [YAMLTraits] Add trait for char

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 21 09:41:48 PDT 2020


ro added a comment.

In D79745#2049234 <https://reviews.llvm.org/D79745#2049234>, @JDevlieghere wrote:

> Hey Rainer,
>
> I'm sorry I didn't see your comment earlier. Because of your e-mail address your replies skipped my inbox and ended up in a GCC folder... I'll need to fix that!


Ah, that explains a lot ;-)

> If the Solaris build bot is public then reverting is indeed fair game. To the correctness of this patch, if it's allowed for `char` and `uint8_t` to be the same type then this patch is wrong but I'd have to double check this stuff. Regardless, it seems like there's at least one platform where that's the case. Let me see if I can simply work around it and get lldb to build by casting to `uint8_t`.

The builders are at Builder clang-solaris11-sparcv9 <http://lab.llvm.org:8014/builders/clang-solaris11-sparcv9> and Builder clang-solaris11-amd64 <http://lab.llvm.org:8014/builders/clang-solaris11-amd64>, so yes, they are public, although currently on
the silent buildmaster.

I've checked the gcc configs and of those, only on Solaris and BPF is `int8_t` plain `char`.  Elsewhere they use explicit `signed char` or
`unsigned char`.  Haven't checked what the C standard requires/allows here, but AFAIK Sun had a couple of guys on the C committee at
the time, so they should know what they're doing...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79745/new/

https://reviews.llvm.org/D79745





More information about the llvm-commits mailing list