[APInt] Use std::min instead of writing the same thing with the ternary operator. NFC

llvm-svn: 302407
This commit is contained in:
Craig Topper 2017-05-08 06:34:39 +00:00
parent a6c142ab4d
commit 0cbab7cc7a
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {