summaryrefslogtreecommitdiff
path: root/include/llvm/Support/TimeValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/TimeValue.h')
-rw-r--r--include/llvm/Support/TimeValue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/TimeValue.h b/include/llvm/Support/TimeValue.h
index 161214cbd3..ab7401a5c1 100644
--- a/include/llvm/Support/TimeValue.h
+++ b/include/llvm/Support/TimeValue.h
@@ -82,6 +82,9 @@ namespace sys {
/// @name Constructors
/// @{
public:
+ /// \brief Default construct a time value, initializing to ZeroTime.
+ TimeValue() : seconds_(0), nanos_(0) {}
+
/// Caller provides the exact value in seconds and nanoseconds. The
/// \p nanos argument defaults to zero for convenience.
/// @brief Explicit constructor