fixing clang error

This commit is contained in:
Evgeny committed 2019-10-02 15:29:09 -05:00
1 parent 8a43ddfc82
commit a8c5e2edce
5 files changed
+10 -7

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ class HsaRsrcFactory {
static void Destroy() {
std::lock_guard<mutex_t> lck(mutex_);
if (instance_) delete instance_;
if (instance_) delete instance_.load();
instance_ = NULL;
}
+1 -1
View File
@@ -90,7 +90,7 @@ class Logger {
static void Destroy() {
std::lock_guard<mutex_t> lck(mutex_);
if (instance_ != NULL) delete instance_;
if (instance_ != NULL) delete instance_.load();
instance_ = NULL;
}