[clang] Use std::clamp (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 16 Oct 2022 17:11:29 +0000 (10:11 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 16 Oct 2022 17:11:29 +0000 (10:11 -0700)
commit647e48cf5f6094ad874766c1471410641b1b86bd
tree5f069889bb9216751efe70236e16b3d3bc985a6c
parent7820a30a1b4c985c252b7f638ae8a170d11ef98f
[clang] Use std::clamp (NFC)

Note that the constructor of MipsABIInfo guarantees that
MinABIStackAlignInBytes <= StackAlignInBytes, so we can use std::clamp
safely.
clang/lib/CodeGen/TargetInfo.cpp