diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-05 14:02:15 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-05 14:02:15 +0000 |
commit | 6b61805ebdd7d6702e36bd9814cfe780643e910c (patch) | |
tree | aaf8db186f837da24bdc4f41784357af0c556326 /clang/lib/Basic/VirtualFileSystem.cpp | |
parent | 5a8dffc618a228378ea82f0ff7c2e7ea5ee78985 (diff) | |
download | llvm-6b61805ebdd7d6702e36bd9814cfe780643e910c.zip llvm-6b61805ebdd7d6702e36bd9814cfe780643e910c.tar.gz llvm-6b61805ebdd7d6702e36bd9814cfe780643e910c.tar.bz2 |
[VFS] Fix compilation on systems where time_t is not int64_t.
No functional change intended.
llvm-svn: 249318
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
-rw-r--r-- | clang/lib/Basic/VirtualFileSystem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Basic/VirtualFileSystem.cpp b/clang/lib/Basic/VirtualFileSystem.cpp index 1ba4a29..d559bee 100644 --- a/clang/lib/Basic/VirtualFileSystem.cpp +++ b/clang/lib/Basic/VirtualFileSystem.cpp @@ -495,7 +495,7 @@ void InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime, // End of the path, create a new file. // FIXME: expose the status details in the interface. Status Stat(Path, getNextVirtualUniqueID(), - llvm::sys::TimeValue(ModificationTime), 0, 0, + llvm::sys::TimeValue(ModificationTime, 0), 0, 0, Buffer->getBufferSize(), llvm::sys::fs::file_type::regular_file, llvm::sys::fs::all_all); @@ -508,9 +508,9 @@ void InMemoryFileSystem::addFile(const Twine &P, time_t ModificationTime, // FIXME: expose the status details in the interface. Status Stat( StringRef(Path.str().begin(), Name.end() - Path.str().begin()), - getNextVirtualUniqueID(), llvm::sys::TimeValue(ModificationTime), 0, - 0, Buffer->getBufferSize(), llvm::sys::fs::file_type::directory_file, - llvm::sys::fs::all_all); + getNextVirtualUniqueID(), llvm::sys::TimeValue(ModificationTime, 0), + 0, 0, Buffer->getBufferSize(), + llvm::sys::fs::file_type::directory_file, llvm::sys::fs::all_all); Dir = cast<detail::InMemoryDirectory>(Dir->addChild( Name, llvm::make_unique<detail::InMemoryDirectory>(std::move(Stat)))); continue; |