We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 205cfcb commit 0ce966fCopy full SHA for 0ce966f
compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
@@ -67,7 +67,7 @@ typedef RustArchiveIterator *LLVMRustArchiveIteratorRef;
67
68
extern "C" LLVMRustArchiveRef LLVMRustOpenArchive(char *Path) {
69
ErrorOr<std::unique_ptr<MemoryBuffer>> BufOr =
70
- MemoryBuffer::getFile(Path, -1, false);
+ MemoryBuffer::getFile(Path, /*IsText*/false, /*RequiresNullTerminator=*/false);
71
if (!BufOr) {
72
LLVMRustSetLastError(BufOr.getError().message().c_str());
73
return nullptr;
0 commit comments