From cca5b9a9608e09930b37e1ed26cef4a1e1fd0d1a Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Wed, 14 Aug 2024 08:18:11 -0500 Subject: [PATCH] rocrtst: change const arg to non-const In rocrtst helper_funcs.h, a function argument that gets written to was previously incorrectly marked as const. Change-Id: If8cc6555ebfa974b9665d9d5b93de01bb45fde2c [ROCm/ROCR-Runtime commit: 1c6a4a55f1002db127eba236e3b830cdf213ad4f] --- projects/rocr-runtime/rocrtst/common/helper_funcs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;