From d8e91e46262bc44006913e6796843909f1ac7bcd Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:01:25 +0000 Subject: Vendor import of llvm trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/llvm/trunk@351319 --- lib/BinaryFormat/Magic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/BinaryFormat/Magic.cpp') diff --git a/lib/BinaryFormat/Magic.cpp b/lib/BinaryFormat/Magic.cpp index 5a339583fca1..78efa6ec87be 100644 --- a/lib/BinaryFormat/Magic.cpp +++ b/lib/BinaryFormat/Magic.cpp @@ -206,7 +206,7 @@ file_magic llvm::identify_magic(StringRef Magic) { } std::error_code llvm::identify_magic(const Twine &Path, file_magic &Result) { - auto FileOrError = MemoryBuffer::getFile(Path); + auto FileOrError = MemoryBuffer::getFile(Path, -1LL, false); if (!FileOrError) return FileOrError.getError(); -- cgit v1.2.3