Add ConstantExpr handling to Intrinsic::objectsize lowering.
[oota-llvm.git] / lib / System / ThreadLocal.cpp
index b0c7fa56d7d354926e7203bd67bd091257fed480..e7054b528147189d2f02fde53de63aa793e48fd2 100644 (file)
@@ -44,7 +44,7 @@ ThreadLocalImpl::ThreadLocalImpl() : data(0) {
   int errorcode = pthread_key_create(key, NULL);
   assert(errorcode == 0);
   (void) errorcode;
-  data = static_cast<void*>(key);
+  data = (void*)key;
 }
 
 ThreadLocalImpl::~ThreadLocalImpl() {