[llvm-commits] [llvm] r78907 - in /llvm/trunk: include/llvm/Support/raw_ostream.h lib/Support/raw_ostream.cpp

Daniel Dunbar daniel at zuster.org
Thu Aug 13 10:42:55 PDT 2009


On Thu, Aug 13, 2009 at 8:44 AM, Dan Gohman<gohman at apple.com> wrote:
> +  /// copy_to_buffer - Copy data into the buffer. Size must not be
> +  /// greater than the number of unused bytes in the buffer.
> +  void copy_to_buffer(const char *Ptr, size_t Size);

There should probably be an assert on the Size condition, and maybe a
comment in copy_to_buf on why the memcpy is safe.

 - Daniel




More information about the llvm-commits mailing list