From 7e026b74dd1fdaa81a147488423571c59079d9bb Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 25 Jun 2009 23:28:28 +0000 Subject: [PATCH] Fix typo in assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74225 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/ThreadLocal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }