Remove const to avoid compile error
Fix the compile error
Change-Id: I422b606b2b969b418c2e77b47a3afad0cfc732a1
[ROCm/amdsmi commit: 33dab0c232]
This commit is contained in:
zatwierdzone przez
Maisam Arif
rodzic
df6b8386cf
commit
3fc94657d9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user