diff --git a/projects/rocr-runtime/rocrtst/common/helper_funcs.h b/projects/rocr-runtime/rocrtst/common/helper_funcs.h index a97ae076bc..068d9b27a3 100644 --- a/projects/rocr-runtime/rocrtst/common/helper_funcs.h +++ b/projects/rocr-runtime/rocrtst/common/helper_funcs.h @@ -128,7 +128,7 @@ class ScopeGuard { __forceinline ~ScopeGuard() { if (!dismiss_) release_(); } - __forceinline ScopeGuard& operator=(const ScopeGuard& rhs) { + __forceinline ScopeGuard& operator=(ScopeGuard& rhs) { dismiss_ = rhs.dismiss_; release_ = rhs.release_; rhs.dismiss_ = true;