From: Craig Topper Date: Mon, 8 May 2017 06:34:39 +0000 (+0000) Subject: [APInt] Use std::min instead of writing the same thing with the ternary operator... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df5e49783f76cb8359b7bfd6f49047ffe3245796;p=llvm [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 --- diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 68a3d8d57e0..4a136f72e86 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -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++) {