diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-28 23:28:57 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-28 23:28:57 -0700 |
commit | 2ad7fd3ac7af15de84713d0e81fc7eeffd320aad (patch) | |
tree | cafaeda443d32df00c6e98b3f7bd5b0377d79eca /llvm/lib/IR/Function.cpp | |
parent | eb438c80dfc452edea1816ea6660fc42f9fc3c7c (diff) | |
download | llvm-2ad7fd3ac7af15de84713d0e81fc7eeffd320aad.zip llvm-2ad7fd3ac7af15de84713d0e81fc7eeffd320aad.tar.gz llvm-2ad7fd3ac7af15de84713d0e81fc7eeffd320aad.tar.bz2 |
[Instrumentation] Use std::clamp (NFC)
The use of std::clamp should be safe here. MinRZ is at most 32, while
kMaxRZ is 1 << 18, so we have MinRZ <= kMaxRZ, avoiding the undefind
behavior of std::clamp.
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions