diff options
author | Kazu Hirata <kazu@google.com> | 2025-10-18 17:50:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-18 17:50:42 -0700 |
commit | 5a20b72fce52244e7c2de1c69c6cea36e00d8bb5 (patch) | |
tree | 81e15982d0b3af2e71795aeb5c6989ba2bd11406 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 9351ad638be5f5cb2f7de300f0518f5ff0923fbf (diff) | |
download | llvm-5a20b72fce52244e7c2de1c69c6cea36e00d8bb5.zip llvm-5a20b72fce52244e7c2de1c69c6cea36e00d8bb5.tar.gz llvm-5a20b72fce52244e7c2de1c69c6cea36e00d8bb5.tar.bz2 |
[ADT] Simplify ResolveUnderlyingType (NFC) (#164114)
We have three implementations of ResolveUnderlyingType:
- enum
- bool
- neither
This patch combines the latter two with std::conditional_t.
Without this patch, we use "void" to trigger a compilation failure
downstream when sizeof(bool) != 1, which is not very friendly. This
patch instead uses static_assert to catch the case where the user
chooses to use bool but sizeof(bool) != 1.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions