summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-04-13 23:28:33 +0000
committerJim Ingham <jingham@apple.com>2012-04-13 23:28:33 +0000
commit99ff2c42f663fd77919689e7eef3df3872474073 (patch)
tree60dd4408bff0f1242e11ec2aad29580627767341 /lldb
parent87d0e61839b4d78cd1bb6d34cc9ad399af0c7eaa (diff)
downloadbcm5719-llvm-99ff2c42f663fd77919689e7eef3df3872474073.tar.gz
bcm5719-llvm-99ff2c42f663fd77919689e7eef3df3872474073.zip
In debug mode, assert if we haven't initialized a mutex we thought we'd initialized.
llvm-svn: 154710
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Host/common/Mutex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Host/common/Mutex.cpp b/lldb/source/Host/common/Mutex.cpp
index 40c3175fd0a..79778b60b86 100644
--- a/lldb/source/Host/common/Mutex.cpp
+++ b/lldb/source/Host/common/Mutex.cpp
@@ -74,6 +74,7 @@ error_check_mutex (pthread_mutex_t *m, MutexAction action)
case eMutexActionAssertInitialized:
// This function will return true if "m" is in the initialized mutex set
success = g_initialized_mutex_set.find(m) != g_initialized_mutex_set.end();
+ assert (success);
break;
}
// Manually call unlock so we don't to any of this error checking
OpenPOWER on IntegriCloud