diff options
author | Zachary Turner <zturner@google.com> | 2017-10-11 20:23:38 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-10-11 20:23:38 +0000 |
commit | f22a25e69d9b8ef238b66b65cf29916248a0abe6 (patch) | |
tree | 63fa08466ce35dfac8a08d3847abffaae1961f33 /llvm/tools/llvm-rc/ResourceFileWriter.cpp | |
parent | 263dc4ef3a049caf92fb6a7f71844e5637bcc6af (diff) | |
download | bcm5719-llvm-f22a25e69d9b8ef238b66b65cf29916248a0abe6.tar.gz bcm5719-llvm-f22a25e69d9b8ef238b66b65cf29916248a0abe6.zip |
Fix incorrect integer literal suffix.
llvm-svn: 315501
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceFileWriter.cpp')
-rw-r--r-- | llvm/tools/llvm-rc/ResourceFileWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-rc/ResourceFileWriter.cpp b/llvm/tools/llvm-rc/ResourceFileWriter.cpp index c43f128eec2..85c5217f99f 100644 --- a/llvm/tools/llvm-rc/ResourceFileWriter.cpp +++ b/llvm/tools/llvm-rc/ResourceFileWriter.cpp @@ -1417,7 +1417,7 @@ ResourceFileWriter::loadFile(StringRef File) const { Path.assign(Cwd.begin(), Cwd.end()); sys::path::append(Path, File); if (sys::fs::exists(Path)) - return errorOrToExpected(MemoryBuffer::getFile(Path, -1i64, false)); + return errorOrToExpected(MemoryBuffer::getFile(Path, -1, false)); // 2. The directory of the input resource file, if it is different from the // current @@ -1426,19 +1426,19 @@ ResourceFileWriter::loadFile(StringRef File) const { Path.assign(InputFileDir.begin(), InputFileDir.end()); sys::path::append(Path, File); if (sys::fs::exists(Path)) - return errorOrToExpected(MemoryBuffer::getFile(Path, -1i64, false)); + return errorOrToExpected(MemoryBuffer::getFile(Path, -1, false)); // 3. All of the include directories specified on the command line. for (StringRef ForceInclude : Params.Include) { Path.assign(ForceInclude.begin(), ForceInclude.end()); sys::path::append(Path, File); if (sys::fs::exists(Path)) - return errorOrToExpected(MemoryBuffer::getFile(Path, -1i64, false)); + return errorOrToExpected(MemoryBuffer::getFile(Path, -1, false)); } if (auto Result = llvm::sys::Process::FindInEnvPath("INCLUDE", File, Params.NoInclude)) - return errorOrToExpected(MemoryBuffer::getFile(*Result, -1i64, false)); + return errorOrToExpected(MemoryBuffer::getFile(*Result, -1, false)); return make_error<StringError>("error : file not found : " + Twine(File), inconvertibleErrorCode()); |