[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:
Craig Topper
2017-05-08 06:34:39 +00:00
parent 3522a09753
commit df5e49783f
+1 -1
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++) {