aboutsummaryrefslogtreecommitdiff
path: root/lib/System/ThreadLocal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/ThreadLocal.cpp')
-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 8d119fbf24..74afa3e953 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;
}