diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/util/lazy_ptr.h b/projects/rocr-runtime/runtime/hsa-runtime/core/util/lazy_ptr.h index e2a847b5c4..2aef6a3bf3 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/util/lazy_ptr.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/util/lazy_ptr.h @@ -59,7 +59,7 @@ template class lazy_ptr { public: lazy_ptr() {} - explicit lazy_ptr(std::function Constructor) { Init(Constructor); } + explicit lazy_ptr(std::function Constructor) { reset(Constructor); } lazy_ptr(lazy_ptr&& rhs) { obj = std::move(rhs.obj);