projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
317adcc
)
Avoid creating a redundant zero APInt.
author
Dan Gohman
<gohman@apple.com>
Sat, 21 Jun 2008 22:03:12 +0000
(22:03 +0000)
committer
Dan Gohman
<gohman@apple.com>
Sat, 21 Jun 2008 22:03:12 +0000
(22:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52602
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 e13011faeac3f1fe5f3ac29c843138d6f832ed03..38b379005af0f77a910b5ba3accc4b82f37555f4 100644
(file)
--- a/
lib/Support/APInt.cpp
+++ b/
lib/Support/APInt.cpp
@@
-2048,7
+2048,7
@@
std::string APInt::toString(uint8_t radix, bool wantSigned) const {
result = "-";
insert_at = 1;
}
- if (tmp ==
APInt(tmp.getBitWidth(), 0)
)
+ if (tmp ==
zero
)
result = "0";
else while (tmp.ne(zero)) {
APInt APdigit(1,0);