OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3522a09
)
[APInt] Use std::min instead of writing the same thing with the ternary operator...
author
Craig Topper
<craig.topper@gmail.com>
Mon, 8 May 2017 06:34:39 +0000
(06:34 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Mon, 8 May 2017 06:34:39 +0000
(06:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302407
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APInt.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APInt.cpp
b/lib/Support/APInt.cpp
index
68a3d8d
..
4a136f7
100644
(file)
--- 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++) {