From 2a47f81d1b27fe39ce50b68413e3d1a358dd7414 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Wed, 19 Feb 2025 11:23:05 +0100 Subject: [PATCH] restrict to writes --- vyper/codegen/stmt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vyper/codegen/stmt.py b/vyper/codegen/stmt.py index b66cfbcdd3..2ab5d364e8 100644 --- a/vyper/codegen/stmt.py +++ b/vyper/codegen/stmt.py @@ -292,7 +292,7 @@ def parse_AugAssign(self): if var.typ._is_prim_word: continue # oob - GHSA-4w26-8p97-f4jp - if var in right.referenced_variables or right.contains_risky_call: + if var in right.variable_writes or right.contains_risky_call: raise CodegenPanic("unreachable") with target.cache_when_complex("_loc") as (b, target):