From f5b2732b0467ebcd804c73396510ef6b0d5598ab Mon Sep 17 00:00:00 2001 From: Ulf Norell Date: Thu, 10 Oct 2019 14:19:28 +0200 Subject: [PATCH] Don't get rid of store updates! --- src/aeso_fcode_to_fate.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index 2fcce83..7c399b9 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -1288,7 +1288,7 @@ r_inline_store(_Acc, _, _, _) -> false. %% Shortcut write followed by final read r_one_shot_var({i, Ann1, I}, [{i, Ann2, J} | Code]) -> case op_view(I) of - {Op, R, As} -> + {Op, R = {var, _}, As} -> Copy = case J of {'STORE', S, R} -> {write_to, S}; _ -> false