Fix typo in assertion.
authorOwen Anderson <resistor@mac.com>
Thu, 25 Jun 2009 23:28:28 +0000 (23:28 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 25 Jun 2009 23:28:28 +0000 (23:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74225 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/ThreadLocal.cpp

index 8d119fbf24138b10d918acc4dad349a5b5d8aac6..74afa3e9538999710b3b2eff44c75593b978fa3a 100644 (file)
@@ -49,7 +49,7 @@ ThreadLocalImpl::ThreadLocalImpl() : data(0) {
 ThreadLocalImpl::~ThreadLocalImpl() {
   pthread_key_t* key = static_cast<pthread_key_t*>(data);
   int errorcode = pthread_key_delete(*key);
-  assert(errorcode = 0);
+  assert(errorcode == 0);
   delete key;
 }