[libc++] Follow-up to r337960: specify lambda's return type to avoid
authorAlex Lorenz <arphaman@gmail.com>
Wed, 25 Jul 2018 21:50:44 +0000 (21:50 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 25 Jul 2018 21:50:44 +0000 (21:50 +0000)
commit33b4c8a18f0d3d8a837b5f03c815935472963968
tree7fb5ab27b8eb402f46e3d805c979d794b0da86c2
parent6a5368eadba4bbbf3120d207795f13853fabcb4f
[libc++] Follow-up to r337960: specify lambda's return type to avoid
-Wc++11-narrowing warning on Darwin

The internal CI produced the following diagnostic:
error: non-constant-expression cannot be narrowed from type 'long long' to '__darwin_suseconds_t' (aka 'int') in initializer list [-Wc++11-narrowing]
  struct ::timeval ConvertedTS[2] = {{TS[0].tv_sec, Convert(TS[0].tv_nsec)},
                                                    ^~~~~~~~~~~~~~~~~~~~~~

llvm-svn: 337968
libcxx/src/experimental/filesystem/filesystem_common.h