r249318 - [VFS] Fix compilation on systems where time_t is not int64_t.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 5 07:02:15 PDT 2015


Author: d0k
Date: Mon Oct  5 09:02:15 2015
New Revision: 249318

URL: http://llvm.org/viewvc/llvm-project?rev=249318&view=rev
Log:
[VFS] Fix compilation on systems where time_t is not int64_t.

No functional change intended.

Modified:
    cfe/trunk/lib/Basic/VirtualFileSystem.cpp

Modified: cfe/trunk/lib/Basic/VirtualFileSystem.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/VirtualFileSystem.cpp?rev=249318&r1=249317&r2=249318&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/VirtualFileSystem.cpp (original)
+++ cfe/trunk/lib/Basic/VirtualFileSystem.cpp Mon Oct  5 09:02:15 2015
@@ -495,7 +495,7 @@ void InMemoryFileSystem::addFile(const T
         // 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 T
       // 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;




More information about the cfe-commits mailing list