diff options
author | Pavel Labath <labath@google.com> | 2016-10-24 10:59:13 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-10-24 10:59:13 +0000 |
commit | 183e3f8b78c9978f205318db1a3fccd0b541a987 (patch) | |
tree | bea7dbdb3ad7824a8076d497790aa9990907c35d /clang/lib/Driver/Tools.cpp | |
parent | 98cb041891b3b516aa74d39020e02b1846773793 (diff) | |
download | llvm-183e3f8b78c9978f205318db1a3fccd0b541a987.zip llvm-183e3f8b78c9978f205318db1a3fccd0b541a987.tar.gz llvm-183e3f8b78c9978f205318db1a3fccd0b541a987.tar.bz2 |
Adjust for TimePoint interface change in llvm: D25730. NFC
llvm-svn: 284964
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 2467758..7d77cd1 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -5576,9 +5576,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, llvm::sys::fs::file_status Status; if (llvm::sys::fs::status(A->getValue(), Status)) D.Diag(diag::err_drv_no_such_file) << A->getValue(); - CmdArgs.push_back(Args.MakeArgString( - "-fbuild-session-timestamp=" + - Twine((uint64_t)Status.getLastModificationTime().toEpochTime()))); + CmdArgs.push_back( + Args.MakeArgString("-fbuild-session-timestamp=" + + Twine((uint64_t)Status.getLastModificationTime() + .time_since_epoch() + .count()))); } if (Args.getLastArg(options::OPT_fmodules_validate_once_per_build_session)) { |