aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-28 23:28:57 -0700
committerKazu Hirata <kazu@google.com>2022-08-28 23:28:57 -0700
commit2ad7fd3ac7af15de84713d0e81fc7eeffd320aad (patch)
treecafaeda443d32df00c6e98b3f7bd5b0377d79eca /llvm/lib/IR/Function.cpp
parenteb438c80dfc452edea1816ea6660fc42f9fc3c7c (diff)
downloadllvm-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