summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-04-08 22:07:36 +0000
committerEric Fiselier <eric@efcs.ca>2019-04-08 22:07:36 +0000
commitb32c847303a8f5e165cd7029d3dc9df05d9980a0 (patch)
tree9d8d7afc07b8114edfd403f27ad32bb4663bd412
parent1a0c0ffa9db515b9129b1086cdcf308ff342a519 (diff)
downloadbcm5719-llvm-b32c847303a8f5e165cd7029d3dc9df05d9980a0.tar.gz
bcm5719-llvm-b32c847303a8f5e165cd7029d3dc9df05d9980a0.zip
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
-rw-r--r--libcxxabi/src/cxa_guard.cpp1
1 files changed, 0 insertions, 1 deletions
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());
}
OpenPOWER on IntegriCloud