aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/Pass.cpp')
-rw-r--r--lib/VMCore/Pass.cpp4
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) {