forked from OSchip/llvm-project
raw_ostream: Follow the 32-bit path when printing "small" decimal numbers.
llvm-svn: 77444
This commit is contained in:
parent
a40b912352
commit
a94f58aee5
|
@ -89,6 +89,10 @@ raw_ostream &raw_ostream::operator<<(long N) {
|
|||
}
|
||||
|
||||
raw_ostream &raw_ostream::operator<<(unsigned long long N) {
|
||||
// Output using 32-bit div/mod when possible.
|
||||
if (N == static_cast<unsigned long>(N))
|
||||
return this->operator<<(static_cast<unsigned long>(N));
|
||||
|
||||
// Zero is a special case.
|
||||
if (N == 0)
|
||||
return *this << '0';
|
||||
|
|
Loading…
Reference in New Issue