[llvm-commits] [llvm] r77477 - /llvm/trunk/lib/Support/raw_ostream.cpp

Daniel Dunbar daniel at zuster.org
Wed Jul 29 10:29:38 PDT 2009


Author: ddunbar
Date: Wed Jul 29 12:29:36 2009
New Revision: 77477

URL: http://llvm.org/viewvc/llvm-project?rev=77477&view=rev
Log:
Perform simplification noticed by Reid.

Modified:
    llvm/trunk/lib/Support/raw_ostream.cpp

Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=77477&r1=77476&r2=77477&view=diff

==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Wed Jul 29 12:29:36 2009
@@ -93,10 +93,6 @@
   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';
-  
   char NumberBuffer[20];
   char *EndPtr = NumberBuffer+sizeof(NumberBuffer);
   char *CurPtr = EndPtr;





More information about the llvm-commits mailing list