From 0cbab7cc7ab328b26bc26356b8fd0fd0f3816d19 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 8 May 2017 06:34:39 +0000 Subject: [APInt] Use std::min instead of writing the same thing with the ternary operator. NFC llvm-svn: 302407 --- llvm/lib/Support/APInt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/APInt.cpp') diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 68a3d8d..4a136f7 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/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++) { -- cgit v1.1