mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 23:33:57 +00:00
Avoid creating a redundant zero APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
317adcc9c6
commit
95df6b3603
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user