Skip to content

Instantly share code, notes, and snippets.

@niner
Created May 4, 2022 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niner/f1f523c4b146e29323d68cbe067c4496 to your computer and use it in GitHub Desktop.
Save niner/f1f523c4b146e29323d68cbe067c4496 to your computer and use it in GitHub Desktop.
diff --git a/src/core/interp.c b/src/core/interp.c
index 4921dc357..34fc3e828 100644
--- a/src/core/interp.c
+++ b/src/core/interp.c
@@ -5133,9 +5133,11 @@ void MVM_interp_run(MVMThreadContext *tc, void (*initial_invoke)(MVMThreadContex
OP(DEPRECATED_44):
MVM_exception_throw_adhoc(tc, "Specializer plugins are no longer supported");
OP(atomicbindattr_o):
- MVM_repr_atomic_bind_attr_o(tc, GET_REG(cur_op, 0).o,
+ MVMObject *obj = GET_REG(cur_op, 0).o;
+ MVM_repr_atomic_bind_attr_o(tc, obj,
GET_REG(cur_op, 2).o, GET_REG(cur_op, 4).s,
GET_REG(cur_op, 6).o);
+ MVM_SC_WB_OBJ(tc, obj);
cur_op += 8;
goto NEXT;
OP(casattr_o):
@vrurg
Copy link

vrurg commented May 4, 2022

src/core/interp.c: In function ‘MVM_interp_run’:
src/core/interp.c:5137:17: error: a label can only be part of a statement and a declaration is not a statement
 5137 |                 MVMObject *obj = GET_REG(cur_op, 0).o;
      |                 ^~~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment