Please separate "initializethe". ;-)<div><br></div><div>Thanks</div><div><br></div><div>  Filipe<span></span><br><br>On Friday, August 8, 2014, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: echristo<br>
Date: Fri Aug  8 17:09:00 2014<br>
New Revision: 215248<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=215248&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=215248&view=rev</a><br>
Log:<br>
Reword comment slightly.<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/Support/MemoryBuffer.h<br>
    llvm/trunk/lib/Support/MemoryBuffer.cpp<br>
<br>
Modified: llvm/trunk/include/llvm/Support/MemoryBuffer.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MemoryBuffer.h?rev=215248&r1=215247&r2=215248&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MemoryBuffer.h?rev=215248&r1=215247&r2=215248&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/include/llvm/Support/MemoryBuffer.h (original)<br>
+++ llvm/trunk/include/llvm/Support/MemoryBuffer.h Fri Aug  8 17:09:00 2014<br>
@@ -106,10 +106,9 @@ public:<br>
   static MemoryBuffer *getMemBufferCopy(StringRef InputData,<br>
                                         StringRef BufferName = "");<br>
<br>
-  /// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that<br>
-  /// is completely initialized to zeros.  Note that the caller need not<br>
-  /// initialize the memory allocated by this method.  The memory is owned by<br>
-  /// the MemoryBuffer object.<br>
+  /// getNewMemBuffer - Allocate a new zero-initialized MemoryBuffer of the<br>
+  /// specified size. Note that the caller need not initializethe memory<br>
+  /// allocated by this method.  The memory is owned by the MemoryBuffer object.<br>
   static MemoryBuffer *getNewMemBuffer(size_t Size, StringRef BufferName = "");<br>
<br>
   /// getNewUninitMemBuffer - Allocate a new MemoryBuffer of the specified size<br>
<br>
Modified: llvm/trunk/lib/Support/MemoryBuffer.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/MemoryBuffer.cpp?rev=215248&r1=215247&r2=215248&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/MemoryBuffer.cpp?rev=215248&r1=215247&r2=215248&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/Support/MemoryBuffer.cpp (original)<br>
+++ llvm/trunk/lib/Support/MemoryBuffer.cpp Fri Aug  8 17:09:00 2014<br>
@@ -141,10 +141,9 @@ MemoryBuffer *MemoryBuffer::getNewUninit<br>
   return new (Mem) MemoryBufferMem(StringRef(Buf, Size), true);<br>
 }<br>
<br>
-/// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that<br>
-/// is completely initialized to zeros.  Note that the caller need not<br>
-/// initialize the memory allocated by this method.  The memory is owned by<br>
-/// the MemoryBuffer object.<br>
+/// getNewMemBuffer - Allocate a new zero-initialized MemoryBuffer of the<br>
+/// specified size. Note that the caller need not initializethe memory<br>
+/// allocated by this method.  The memory is owned by the MemoryBuffer object.<br>
 MemoryBuffer *MemoryBuffer::getNewMemBuffer(size_t Size, StringRef BufferName) {<br>
   MemoryBuffer *SB = getNewUninitMemBuffer(Size, BufferName);<br>
   if (!SB) return nullptr;<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'llvm-commits@cs.uiuc.edu')">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br><br>-- <br>  F<br><br>