diff --git a/argon/vm/memory/refcount.cpp b/argon/vm/memory/refcount.cpp index 43e7e4c5..675e8498 100644 --- a/argon/vm/memory/refcount.cpp +++ b/argon/vm/memory/refcount.cpp @@ -122,7 +122,11 @@ bool RefCount::IncStrong() { desired = current; if (!RC_HAVE_INLINE_COUNTER(desired)) { - assert(RC_GET_SIDETABLE(desired)->strong.fetch_add(1) != 0); + auto *side = RC_GET_SIDETABLE(desired); + auto s_fetch = side->strong.fetch_add(1); + + assert(s_fetch != 0); + return true; }