aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleCache.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-10-18 17:50:42 -0700
committerGitHub <noreply@github.com>2025-10-18 17:50:42 -0700
commit5a20b72fce52244e7c2de1c69c6cea36e00d8bb5 (patch)
tree81e15982d0b3af2e71795aeb5c6989ba2bd11406 /clang/lib/Serialization/ModuleCache.cpp
parent9351ad638be5f5cb2f7de300f0518f5ff0923fbf (diff)
downloadllvm-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 'clang/lib/Serialization/ModuleCache.cpp')
0 files changed, 0 insertions, 0 deletions