From cf9abe286486160fea316a34c561abbc534fa7eb Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Wed, 8 Jul 2026 23:16:59 -0700 Subject: [PATCH] Allow atomic operations on non-shared memory in SafeHeap SafeHeap needs to generate atomic helper functions even if the memory is not shared, because atomic instructions can still be used. TAG=agy CONV=75c799ef-6dca-4712-8ffe-d8d1dfaffd0b --- src/passes/SafeHeap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/passes/SafeHeap.cpp b/src/passes/SafeHeap.cpp index d5a4f8843de..6b30fde4987 100644 --- a/src/passes/SafeHeap.cpp +++ b/src/passes/SafeHeap.cpp @@ -223,8 +223,8 @@ struct SafeHeap : public Pass { } bool - isPossibleAtomicOperation(Index align, Index bytes, bool shared, Type type) { - return align == bytes && shared && type.isInteger(); + isPossibleAtomicOperation(Index align, Index bytes, bool /*shared*/, Type type) { + return align == bytes && type.isInteger(); } void addGlobals(Module* module, FeatureSet features) {