Fix atomic storage global use acces (#6600)

This commit is contained in:
atlv authored and GitHub committed 2024-11-25 12:06:12 +01:00
1 parent 29bb44b19a
commit 05c9f43fa8
1 file changed
+1 -1
+1 -1
View File
@@ -1054,7 +1054,7 @@ impl FunctionInfo {
value,
result: _,
} => {
let _ = self.add_ref_impl(pointer, GlobalUse::WRITE);
let _ = self.add_ref_impl(pointer, GlobalUse::READ | GlobalUse::WRITE);
let _ = self.add_ref(value);
if let crate::AtomicFunction::Exchange { compare: Some(cmp) } = *fun {
let _ = self.add_ref(cmp);