diff options
Diffstat (limited to 'lib/Support/ManagedStatic.cpp')
| -rw-r--r-- | lib/Support/ManagedStatic.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/lib/Support/ManagedStatic.cpp b/lib/Support/ManagedStatic.cpp index 1c884dc70fc9..74f71a385027 100644 --- a/lib/Support/ManagedStatic.cpp +++ b/lib/Support/ManagedStatic.cpp @@ -43,7 +43,7 @@ void ManagedStaticBase::RegisterManagedStatic(void *(*Creator)(),        Ptr.store(Tmp, std::memory_order_release);        DeleterFn = Deleter; -       +        // Add to list of managed statics.        Next = StaticList;        StaticList = this; @@ -53,7 +53,7 @@ void ManagedStaticBase::RegisterManagedStatic(void *(*Creator)(),             "Partially initialized ManagedStatic!?");      Ptr = Creator();      DeleterFn = Deleter; -   +      // Add to list of managed statics.      Next = StaticList;      StaticList = this; @@ -70,7 +70,7 @@ void ManagedStaticBase::destroy() const {    // Destroy memory.    DeleterFn(Ptr); -   +    // Cleanup.    Ptr = nullptr;    DeleterFn = nullptr; | 
