[PATCH] D46784: [NFC] Remove inaccurate comment
JF Bastien via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 11 16:04:06 PDT 2018
jfb created this revision.
jfb added reviewers: zturner, chandlerc.
Herald added subscribers: llvm-commits, aheejin.
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.
Repository:
rL LLVM
https://reviews.llvm.org/D46784
Files:
lib/Support/ManagedStatic.cpp
Index: lib/Support/ManagedStatic.cpp
===================================================================
--- lib/Support/ManagedStatic.cpp
+++ lib/Support/ManagedStatic.cpp
@@ -28,9 +28,6 @@
}
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46784.146436.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180511/46f6f4c6/attachment.bin>
More information about the llvm-commits
mailing list