mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Perform simplification noticed by Reid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
28bc9d8826
commit
89ae98cb76
@ -93,10 +93,6 @@ raw_ostream &raw_ostream::operator<<(unsigned long long N) {
|
|||||||
if (N == static_cast<unsigned long>(N))
|
if (N == static_cast<unsigned long>(N))
|
||||||
return this->operator<<(static_cast<unsigned long>(N));
|
return this->operator<<(static_cast<unsigned long>(N));
|
||||||
|
|
||||||
// Zero is a special case.
|
|
||||||
if (N == 0)
|
|
||||||
return *this << '0';
|
|
||||||
|
|
||||||
char NumberBuffer[20];
|
char NumberBuffer[20];
|
||||||
char *EndPtr = NumberBuffer+sizeof(NumberBuffer);
|
char *EndPtr = NumberBuffer+sizeof(NumberBuffer);
|
||||||
char *CurPtr = EndPtr;
|
char *CurPtr = EndPtr;
|
||||||
|
Loading…
Reference in New Issue
Block a user