build: slightly change files to pass compilation
Compiled using Clang and encountered errors on ambiguous pointer type, implicit conversion NULL to bool, and unused function, etc. As a fix, this patch slightly updates the related codes. Change-Id: I4a73d66293313dda36749036f5c73aaf2a445231
This commit is contained in:
@@ -220,7 +220,7 @@ class HsaRsrcFactory {
|
||||
|
||||
static void Destroy() {
|
||||
std::lock_guard<mutex_t> lck(mutex_);
|
||||
if (instance_) delete instance_;
|
||||
if (instance_) delete instance_.load();
|
||||
instance_ = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user