diff --git a/lib/System/ThreadLocal.cpp b/lib/System/ThreadLocal.cpp index 8d119fbf241..74afa3e9538 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(data); int errorcode = pthread_key_delete(*key); - assert(errorcode = 0); + assert(errorcode == 0); delete key; }