Do not set RequiresNullTerminator. NFC.

When reading object files, we don't need '\0' at end of each file.

llvm-svn: 331045
This commit is contained in:
Rui Ueyama 2018-04-27 15:32:04 +00:00
parent c855e92ca9
commit 50bf643cfb
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ Optional<MemoryBufferRef> elf::readFile(StringRef Path) {
log(Path);
auto MBOrErr = MemoryBuffer::getFile(Path);
auto MBOrErr = MemoryBuffer::getFile(Path, -1, false);
if (auto EC = MBOrErr.getError()) {
error("cannot open " + Path + ": " + EC.message());
return None;