Add model numbers for Skylake CPUs and an additional Broadwell model.
[oota-llvm.git] / lib / Support / Windows / RWMutex.inc
index 00d0e93d8d58647d0b0952e862f15e6d3899b869..2d1d25f67b8aa646a009a1efa7588b46128e36a2 100644 (file)
@@ -84,12 +84,10 @@ RWMutexImpl::RWMutexImpl() {
 }
 
 RWMutexImpl::~RWMutexImpl() {
-  if (sHasSRW) {
-    // Nothing to do in the case of slim reader/writers
-  } else {
+  if (!sHasSRW)
     DeleteCriticalSection(static_cast<LPCRITICAL_SECTION>(data_));
-    free(data_);
-  }
+  // Nothing to do in the case of slim reader/writers except free the memory.
+  free(data_);
 }
 
 bool RWMutexImpl::reader_acquire() {