[llvm] r215248 - Reword comment slightly.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Aug 8 15:48:23 PDT 2014


> -  /// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that
> -  /// 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.
> +  /// getNewMemBuffer - Allocate a new zero-initialized MemoryBuffer of the
> +  /// specified size. Note that the caller need not initializethe memory
> +  /// allocated by this method.  The memory is owned by the MemoryBuffer object.
>    static MemoryBuffer *getNewMemBuffer(size_t Size, StringRef BufferName = "");

While at it, why not avoid the name duplication? :-)

Cheers,
Rafael



More information about the llvm-commits mailing list