diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-08 06:34:39 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-08 06:34:39 +0000 |
commit | 0cbab7cc7ab328b26bc26356b8fd0fd0f3816d19 (patch) | |
tree | a47573fe98961e314c46edcce7014f899afe7062 /llvm/lib/Support/APInt.cpp | |
parent | a6c142ab4d4eb8f69069c96ee6463d9f279b97ac (diff) | |
download | bcm5719-llvm-0cbab7cc7ab328b26bc26356b8fd0fd0f3816d19.tar.gz bcm5719-llvm-0cbab7cc7ab328b26bc26356b8fd0fd0f3816d19.zip |
[APInt] Use std::min instead of writing the same thing with the ternary operator. NFC
llvm-svn: 302407
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 68a3d8d57e0..4a136f72e86 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++) { |