diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-10 07:40:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-10 07:40:46 +0000 |
commit | 87f28e87d76dab198d1ef886075a95e207098ca7 (patch) | |
tree | 0fcc41714865f2c66a69766a67534912eb39a641 /lib/VMCore/Pass.cpp | |
parent | 4413672aa51f66bca1c71ba663cddff6f13abb04 (diff) |
fix PR1039 by making timing info be destroyed by llvm_shutdown, not by
static dtors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Pass.cpp')
-rw-r--r-- | lib/VMCore/Pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index c7a80c5556..9283d4071d 100644 --- a/lib/VMCore/Pass.cpp +++ b/lib/VMCore/Pass.cpp @@ -99,8 +99,8 @@ void TimingInfo::createTheTimeInfo() { // Constructed the first time this is called, iff -time-passes is enabled. // This guarantees that the object will be constructed before static globals, // thus it will be destroyed before them. - static TimingInfo TTI; - TheTimeInfo = &TTI; + static ManagedStatic<TimingInfo> TTI; + TheTimeInfo = &*TTI; } void PMDebug::PrintArgumentInformation(const Pass *P) { |