mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
[APInt] Use std::min instead of writing the same thing with the ternary operator. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302407 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2252,7 +2252,7 @@ int APInt::tcMultiplyPart(WordType *dst, const WordType *src,
|
||||
assert(dstParts <= srcParts + 1);
|
||||
|
||||
/* N loops; minimum of dstParts and srcParts. */
|
||||
unsigned n = dstParts < srcParts ? dstParts: srcParts;
|
||||
unsigned n = std::min(dstParts, srcParts);
|
||||
|
||||
unsigned i;
|
||||
for (i = 0; i < n; i++) {
|
||||
|
||||
Reference in New Issue
Block a user