[PATCH] Avoid zero-byte memcpy to NULL in raw_ostream

Jordan Rose jordan_rose at apple.com
Fri Mar 29 14:56:17 PDT 2013



================
Comment at: include/llvm/Support/raw_ostream.h:158
@@ -157,1 +157,3 @@
+    if (Size == 0)
+      return;
 
----------------
Um, obviously I meant `return *this;`.


http://llvm-reviews.chandlerc.com/D596



More information about the llvm-commits mailing list