aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorJoe Loser <joeloser@fastmail.com>2022-12-02 22:18:24 -0700
committerJoe Loser <joeloser@fastmail.com>2022-12-03 17:19:46 -0700
commit4509fb9c007e13b65153e9e797df4fca00ecb241 (patch)
treeb8d1a927b9043348ac5a658dc304109a47516f54 /clang/lib/Basic/SourceManager.cpp
parent1623aee41a5c7088954b7f8f890ee3a618f0e8c8 (diff)
downloadllvm-4509fb9c007e13b65153e9e797df4fca00ecb241.zip
llvm-4509fb9c007e13b65153e9e797df4fca00ecb241.tar.gz
llvm-4509fb9c007e13b65153e9e797df4fca00ecb241.tar.bz2
[MLIR] Simplify key construction/hashing in StorageUniquer
`getKey` and `getHash` use mutually exclusive overloads based on existence of methods to determine how to compute get the key or hash, respectively. This is a bit verbose with `std::enable_if_t`. Simplify it a bit by using `if constexpr` directly. As an added bonus, this is slightly quicker to compile. Differential Revision: https://reviews.llvm.org/D139245
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions