summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/MemoryBuffer.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-08-06 20:59:09 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-08-06 20:59:09 +0000
commitf394f83f828628bc95db343ad7842693393f40f0 (patch)
tree68419d4b9806094233f3ba29de3d29fae220abc0 /llvm/lib/Support/MemoryBuffer.cpp
parent501e71c86bc9a442bc0f7cf6635bea14d9019daf (diff)
downloadbcm5719-llvm-f394f83f828628bc95db343ad7842693393f40f0.tar.gz
bcm5719-llvm-f394f83f828628bc95db343ad7842693393f40f0.zip
getNewMemBuffer memsets the buffer to zeros,
the caller don't have to initialize it. llvm-svn: 214994
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
-rw-r--r--llvm/lib/Support/MemoryBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp
index 522c365f3d5..75f25beda82 100644
--- a/llvm/lib/Support/MemoryBuffer.cpp
+++ b/llvm/lib/Support/MemoryBuffer.cpp
@@ -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) {
OpenPOWER on IntegriCloud