diff options
Diffstat (limited to 'llvm/lib/Support/ManagedStatic.cpp')
| -rw-r--r-- | llvm/lib/Support/ManagedStatic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/ManagedStatic.cpp b/llvm/lib/Support/ManagedStatic.cpp index e358fe8c5c1..c05cd22ea05 100644 --- a/llvm/lib/Support/ManagedStatic.cpp +++ b/llvm/lib/Support/ManagedStatic.cpp @@ -24,7 +24,7 @@ void ManagedStaticBase::RegisterManagedStatic(void *(*Creator)(), if (llvm_is_multithreaded()) { llvm_acquire_global_lock(); - if (Ptr == nullptr) { + if (!Ptr) { void* tmp = Creator ? Creator() : nullptr; TsanHappensBefore(this); |

