getNewMemBuffer memsets the buffer to zeros,
authorYaron Keren <yaron.keren@gmail.com>
Wed, 6 Aug 2014 20:59:09 +0000 (20:59 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Wed, 6 Aug 2014 20:59:09 +0000 (20:59 +0000)
the caller don't have to initialize it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214994 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/MemoryBuffer.h
lib/Support/MemoryBuffer.cpp

index 147be47e1c8fbeec9f33a9db664e6816185fa6bc..298339210978ef99af5adbd41129389e82d488e7 100644 (file)
@@ -107,7 +107,7 @@ public:
                                         StringRef BufferName = "");
 
   /// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that
-  /// is completely initialized to zeros.  Note that the caller should
+  /// is completely initialized to zeros.  Note that the caller need not
   /// initialize the memory allocated by this method.  The memory is owned by
   /// the MemoryBuffer object.
   static MemoryBuffer *getNewMemBuffer(size_t Size, StringRef BufferName = "");
index 522c365f3d526a0d0bcfdf3c0dd7e6cdc4ba5d3d..75f25beda82337a6c070df78e4117459bb2d6f83 100644 (file)
@@ -142,7 +142,7 @@ MemoryBuffer *MemoryBuffer::getNewUninitMemBuffer(size_t Size,
 }
 
 /// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that
-/// is completely initialized to zeros.  Note that the caller should
+/// is completely initialized to zeros.  Note that the caller need not
 /// initialize the memory allocated by this method.  The memory is owned by
 /// the MemoryBuffer object.
 MemoryBuffer *MemoryBuffer::getNewMemBuffer(size_t Size, StringRef BufferName) {