llvm.org GIT mirror llvm / 517cd17
Zero-initialize chrono duration objects The default duration constructor does not zero-initialize the object, we need to do that manually. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286359 91177308-0d34-0410-b5e6-96231b3b80d8 Pavel Labath 3 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5959 private:
6060 // Options that matches the setters above.
6161 std::string Path;
62 std::chrono::seconds Expiration;
63 std::chrono::seconds Interval;
62 std::chrono::seconds Expiration = std::chrono::seconds::zero();
63 std::chrono::seconds Interval = std::chrono::seconds::zero();
6464 unsigned PercentageOfAvailableSpace = 0;
6565 };
6666
6565 return { toDuration(RU.ru_utime), toDuration(RU.ru_stime) };
6666 #else
6767 #warning Cannot get usage times on this platform
68 return {};
68 return { std::chrono::microseconds::zero(), std::chrono::microseconds::zero() };
6969 #endif
7070 }
7171