From df5e49783f76cb8359b7bfd6f49047ffe3245796 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 8 May 2017 06:34:39 +0000 Subject: [PATCH] [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 --- lib/Support/APInt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.11.0