forked from OSchip/llvm-project
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:
parent
c855e92ca9
commit
50bf643cfb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue