Remove const to avoid compile error

Fix the compile error

Change-Id: I422b606b2b969b418c2e77b47a3afad0cfc732a1


[ROCm/amdsmi commit: 33dab0c232]
This commit is contained in:
Bill(Shuzhou) Liu authored and Maisam Arif committed 2024-07-18 18:15:43 -04:00
1 parent df6b8386cf
commit 3fc94657d9
1 file changed
+1 -1
@@ -242,7 +242,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;