[llvm] r332175 - [NFC] Remove inaccurate comment

JF Bastien via llvm-commits llvm-commits at lists.llvm.org
Sat May 12 12:39:35 PDT 2018


Author: jfb
Date: Sat May 12 12:39:34 2018
New Revision: 332175

URL: http://llvm.org/viewvc/llvm-project?rev=332175&view=rev
Log:
[NFC] Remove inaccurate comment

Summary:
r271558 moved getManagedStaticMutex's mutex from a function-local
static to using call_once, but left a comment added in r211424. That comment is
now erroneous, remove it.

Reviewers: zturner, chandlerc

Subscribers: aheejin, llvm-commits

Differential Revision: https://reviews.llvm.org/D46784

Modified:
    llvm/trunk/lib/Support/ManagedStatic.cpp

Modified: llvm/trunk/lib/Support/ManagedStatic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ManagedStatic.cpp?rev=332175&r1=332174&r2=332175&view=diff
==============================================================================
--- llvm/trunk/lib/Support/ManagedStatic.cpp (original)
+++ llvm/trunk/lib/Support/ManagedStatic.cpp Sat May 12 12:39:34 2018
@@ -28,9 +28,6 @@ static void initializeMutex() {
 }
 
 static sys::Mutex* getManagedStaticMutex() {
-  // We need to use a function local static here, since this can get called
-  // during a static constructor and we need to guarantee that it's initialized
-  // correctly.
   llvm::call_once(mutex_init_flag, initializeMutex);
   return ManagedStaticMutex;
 }




More information about the llvm-commits mailing list