[llvm] r315501 - Fix incorrect integer literal suffix.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 13:23:38 PDT 2017


Author: zturner
Date: Wed Oct 11 13:23:38 2017
New Revision: 315501

URL: http://llvm.org/viewvc/llvm-project?rev=315501&view=rev
Log:
Fix incorrect integer literal suffix.

Modified:
    llvm/trunk/tools/llvm-rc/ResourceFileWriter.cpp

Modified: llvm/trunk/tools/llvm-rc/ResourceFileWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-rc/ResourceFileWriter.cpp?rev=315501&r1=315500&r2=315501&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-rc/ResourceFileWriter.cpp (original)
+++ llvm/trunk/tools/llvm-rc/ResourceFileWriter.cpp Wed Oct 11 13:23:38 2017
@@ -1417,7 +1417,7 @@ ResourceFileWriter::loadFile(StringRef F
   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 F
   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());




More information about the llvm-commits mailing list