mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Fix incorrect integer literal suffix.
llvm-svn: 315501
This commit is contained in:
parent
438bff63df
commit
bd1a325dfd
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user