forked from OSchip/llvm-project
[APInt] Use std::min instead of writing the same thing with the ternary operator. NFC
llvm-svn: 302407
This commit is contained in:
parent
a6c142ab4d
commit
0cbab7cc7a
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue