aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/Timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Timer.h')
-rw-r--r--include/llvm/Support/Timer.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h
index aba31506fc..2997a8744c 100644
--- a/include/llvm/Support/Timer.h
+++ b/include/llvm/Support/Timer.h
@@ -171,6 +171,7 @@ public:
explicit TimerGroup(const TimerGroup &TG) : FirstTimer(0) {
operator=(TG);
}
+ ~TimerGroup();
void operator=(const TimerGroup &TG) {
assert(TG.FirstTimer == 0 && FirstTimer == 0 &&
@@ -181,11 +182,6 @@ public:
void setName(const std::string &name) { Name = name; }
- ~TimerGroup() {
- assert(FirstTimer == 0 &&
- "TimerGroup destroyed before all contained timers!");
- }
-
void PrintQueuedTimers(raw_ostream &OS);
private: