aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-25 23:28:28 +0000
committerOwen Anderson <resistor@mac.com>2009-06-25 23:28:28 +0000
commit7e026b74dd1fdaa81a147488423571c59079d9bb (patch)
treee800bc5778fcd106f8d3f060521f1e3e5ff9740c /lib/System
parent0919a916bf152e08617e67f9d4b03db4769076e2 (diff)
downloadexternal_llvm-7e026b74dd1fdaa81a147488423571c59079d9bb.zip
external_llvm-7e026b74dd1fdaa81a147488423571c59079d9bb.tar.gz
external_llvm-7e026b74dd1fdaa81a147488423571c59079d9bb.tar.bz2
Fix typo in assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/ThreadLocal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp
index 8d119fb..74afa3e 100644
--- a/lib/System/ThreadLocal.cpp
+++ b/lib/System/ThreadLocal.cpp
@@ -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;
}