]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #15779 : alexcrichton/rust/no-nul-terminator, r=pcwalton
authorbors <bors@rust-lang.org>
Thu, 24 Jul 2014 19:56:06 +0000 (19:56 +0000)
committerbors <bors@rust-lang.org>
Thu, 24 Jul 2014 19:56:06 +0000 (19:56 +0000)
Apparently the default getFile implementation for a memory buffer in LLVM ends
up requiring a null terminator at the end of the file. This isn't true a good
bit of the time apparently on OSX. There have been a number of failed
nightly/snapshot builds recently with this strange assertion.

This modifies the calls to MemoryBuffer::getFile to explicitly not ask for a
null terminator.


Trivial merge