From b2a1593f03b6c0d681b75fbbd1513d691722dbee Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 8 Nov 2019 14:21:34 +0000 Subject: [PATCH] Timer - fix uninitialized variable warnings. NFCI. --- llvm/include/llvm/Support/Timer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Support/Timer.h b/llvm/include/llvm/Support/Timer.h index 76c9bc7..9ff1bd9 100644 --- a/llvm/include/llvm/Support/Timer.h +++ b/llvm/include/llvm/Support/Timer.h @@ -78,12 +78,12 @@ class Timer { TimeRecord StartTime; ///< The time startTimer() was last called. std::string Name; ///< The name of this time variable. std::string Description; ///< Description of this time variable. - bool Running; ///< Is the timer currently running? - bool Triggered; ///< Has the timer ever been triggered? + bool Running = false; ///< Is the timer currently running? + bool Triggered = false; ///< Has the timer ever been triggered? TimerGroup *TG = nullptr; ///< The TimerGroup this Timer is in. - Timer **Prev; ///< Pointer to \p Next of previous timer in group. - Timer *Next; ///< Next timer in the group. + Timer **Prev = nullptr; ///< Pointer to \p Next of previous timer in group. + Timer *Next = nullptr; ///< Next timer in the group. public: explicit Timer(StringRef Name, StringRef Description) { init(Name, Description); -- 2.7.4