]> granicus.if.org Git - llvm/commitdiff
Fix incorrect integer literal suffix.
authorZachary Turner <zturner@google.com>
Wed, 11 Oct 2017 20:23:38 +0000 (20:23 +0000)
committerZachary Turner <zturner@google.com>
Wed, 11 Oct 2017 20:23:38 +0000 (20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315501 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-rc/ResourceFileWriter.cpp

index c43f128eec2afb70b000f1b12f91155da9f446e6..85c5217f99f723dd20ca3c45a814832c20b624db 100644 (file)
@@ -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());