diff options
author | JF Bastien <jfb@google.com> | 2018-05-12 19:39:34 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2018-05-12 19:39:34 +0000 |
commit | 6a68f38c0c121f00070fdac663486ced7f6f4976 (patch) | |
tree | a02232bad032bca5f9a4b561529f8c01913c312a /llvm/lib/Support/ManagedStatic.cpp | |
parent | 47b894b4a3772bbee00da4156f1c79117819ace6 (diff) | |
download | bcm5719-llvm-6a68f38c0c121f00070fdac663486ced7f6f4976.tar.gz bcm5719-llvm-6a68f38c0c121f00070fdac663486ced7f6f4976.zip |
[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
llvm-svn: 332175
Diffstat (limited to 'llvm/lib/Support/ManagedStatic.cpp')
-rw-r--r-- | llvm/lib/Support/ManagedStatic.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Support/ManagedStatic.cpp b/llvm/lib/Support/ManagedStatic.cpp index fb7cd070c42..1c884dc70fc 100644 --- a/llvm/lib/Support/ManagedStatic.cpp +++ b/llvm/lib/Support/ManagedStatic.cpp @@ -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; } |