]> granicus.if.org Git - clang/commitdiff
[VFS] Fix compilation on systems where time_t is not int64_t.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 14:02:15 +0000 (14:02 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 14:02:15 +0000 (14:02 +0000)
No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249318 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/VirtualFileSystem.cpp

index 1ba4a29c1c4ee15668b6c0da5d4e7206fb7ed07d..d559bee97796d9efd51f58ad3f3065da9d64c796 100644 (file)
@@ -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;