diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-08 14:21:34 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-08 14:46:22 +0000 |
commit | b2a1593f03b6c0d681b75fbbd1513d691722dbee (patch) | |
tree | 5a25775249df54195bb3638af6ba59941bf955ad | |
parent | f6fa57cf5751fdd506dcd82fd8a170b2543798f7 (diff) | |
download | bcm5719-llvm-b2a1593f03b6c0d681b75fbbd1513d691722dbee.tar.gz bcm5719-llvm-b2a1593f03b6c0d681b75fbbd1513d691722dbee.zip |
Timer - fix uninitialized variable warnings. NFCI.
-rw-r--r-- | llvm/include/llvm/Support/Timer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Support/Timer.h b/llvm/include/llvm/Support/Timer.h index 76c9bc7b686..9ff1bd9eee2 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); |