From b32c847303a8f5e165cd7029d3dc9df05d9980a0 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 8 Apr 2019 22:07:36 +0000 Subject: Remove unneeded write in __cxa_guard_release. The INIT_COMPLETE write now writes to the entire guard object instead of just one byte. llvm-svn: 357949 --- libcxxabi/src/cxa_guard.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libcxxabi/src/cxa_guard.cpp b/libcxxabi/src/cxa_guard.cpp index 563c9cfeb73..2dc4afb18c9 100644 --- a/libcxxabi/src/cxa_guard.cpp +++ b/libcxxabi/src/cxa_guard.cpp @@ -211,7 +211,6 @@ _LIBCXXABI_FUNC_VIS void __cxa_guard_release(guard_type *raw_guard_object) { GlobalMutexGuard gmutex("__cxa_guard_release", OnRelease::UNLOCK_AND_BROADCAST); GuardObject guard(raw_guard_object); - guard.store(GuardValue::ZERO()); guard.store(GuardValue::INIT_COMPLETE()); } -- cgit v1.2.3