From d6ef7fac1a020c58ec61cad2325e5f6afd0bbee6 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sat, 7 Nov 2009 05:50:28 +0000 Subject: Update some globals to use ManagedStatic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86342 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SlotIndexes.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/SlotIndexes.cpp') diff --git a/lib/CodeGen/SlotIndexes.cpp b/lib/CodeGen/SlotIndexes.cpp index bf66367865..d99d120509 100644 --- a/lib/CodeGen/SlotIndexes.cpp +++ b/lib/CodeGen/SlotIndexes.cpp @@ -16,8 +16,10 @@ using namespace llvm; -std::auto_ptr IndexListEntry::emptyKeyEntry, - IndexListEntry::tombstoneKeyEntry; + +// Yep - these are thread safe. See the header for details. +ManagedStatic IndexListEntry::emptyKeyEntry; +ManagedStatic IndexListEntry::tombstoneKeyEntry; char SlotIndexes::ID = 0; static RegisterPass X("slotindexes", "Slot index numbering"); -- cgit v1.2.3-70-g09d2