summaryrefslogtreecommitdiff
path: root/include
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
commit517cd170c39f49a067aef93cbc4bd8f0a261f144 (patch)
treec5cc66730d858f6f2e0543dff96366e561420053 /include
parent73ce0c00e4f025a6eece55cf125ffaf0a5b06f28 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/CachePruning.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/CachePruning.h b/include/llvm/Support/CachePruning.h
index c20108763c3..954fd8ae7ff 100644
--- a/include/llvm/Support/CachePruning.h
+++ b/include/llvm/Support/CachePruning.h
@@ -60,8 +60,8 @@ public:
private:
// Options that matches the setters above.
std::string Path;
- std::chrono::seconds Expiration;
- std::chrono::seconds Interval;
+ std::chrono::seconds Expiration = std::chrono::seconds::zero();
+ std::chrono::seconds Interval = std::chrono::seconds::zero();
unsigned PercentageOfAvailableSpace = 0;
};