From 0055fac7243626a7526c0f0823776e4b82ebd034 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 7 Aug 2010 13:07:57 +0000 Subject: [PATCH] A reference to the Timer's name is safe, it outlives the contents of the vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110517 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Timer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h index f959136f86a..a5a33ba3240 100644 --- a/include/llvm/Support/Timer.h +++ b/include/llvm/Support/Timer.h @@ -18,7 +18,6 @@ #include "llvm/System/DataTypes.h" #include "llvm/ADT/StringRef.h" #include -#include #include #include @@ -165,7 +164,7 @@ struct NamedRegionTimer : public TimeRegion { class TimerGroup { std::string Name; Timer *FirstTimer; // First timer in the group. - std::vector > TimersToPrint; + std::vector > TimersToPrint; TimerGroup **Prev, *Next; // Doubly linked list of TimerGroup's. TimerGroup(const TimerGroup &TG); // DO NOT IMPLEMENT -- 2.34.1