summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-11-09 11:43:57 +0000
committerPavel Labath <labath@google.com>2016-11-09 11:43:57 +0000
commit775bbc373639595f3c07ca15276145aa4917d0b7 (patch)
treea390bf5ccfec553ab244157ed7855b2361dcd9b0 /llvm/lib/Support/Unix
parent62d72041d4a04d93ec0ad562d5c428929cc68fdc (diff)
downloadbcm5719-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.inc2
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
}
OpenPOWER on IntegriCloud