diff options
author | Pavel Labath <labath@google.com> | 2016-11-09 11:43:57 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-11-09 11:43:57 +0000 |
commit | 775bbc373639595f3c07ca15276145aa4917d0b7 (patch) | |
tree | a390bf5ccfec553ab244157ed7855b2361dcd9b0 /llvm/lib/Support/Unix | |
parent | 62d72041d4a04d93ec0ad562d5c428929cc68fdc (diff) | |
download | bcm5719-llvm-775bbc373639595f3c07ca15276145aa4917d0b7.tar.gz bcm5719-llvm-775bbc373639595f3c07ca15276145aa4917d0b7.zip |
Zero-initialize chrono duration objects
The default duration constructor does not zero-initialize the object, we need to
do that manually.
llvm-svn: 286359
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Process.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index a5fac11370a..16f8f5a98e5 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/lib/Support/Unix/Process.inc @@ -66,7 +66,7 @@ static std::pair<std::chrono::microseconds, std::chrono::microseconds> getRUsage return { toDuration(RU.ru_utime), toDuration(RU.ru_stime) }; #else #warning Cannot get usage times on this platform - return {}; + return { std::chrono::microseconds::zero(), std::chrono::microseconds::zero() }; #endif } |