aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-rc
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-10-11 20:23:38 +0000
committerZachary Turner <zturner@google.com>2017-10-11 20:23:38 +0000
commita398a71f79c6e15a837499ee84f8cc8e93d09648 (patch)
tree7f005c3f201953becc95fecf50252be1a306fa54 /tools/llvm-rc
parentd5b424820ccc75656e16502c75993d221d779c1f (diff)
Fix incorrect integer literal suffix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-rc')
-rw-r--r--tools/llvm-rc/ResourceFileWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/llvm-rc/ResourceFileWriter.cpp b/tools/llvm-rc/ResourceFileWriter.cpp
index c43f128eec2..85c5217f99f 100644
--- a/tools/llvm-rc/ResourceFileWriter.cpp
+++ b/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());