Commit 1faaf701 authored by gsamain's avatar gsamain

Fix lock analysis for lhs (no need to write-lock the whole chain, just the last object)

parent 50e91927
......@@ -754,7 +754,10 @@ class ExprNode(Node):
self.set_autorlock(env)
def ensure_lhs_locked(self, env, is_dereferenced = False):
self.ensure_subexpr_lhs_locked(env)
if not is_dereferenced:
self.ensure_subexpr_lhs_locked(env)
else:
self.ensure_subexpr_rhs_locked(env)
if not self.tracked_state:
self.get_tracked_state(env)
if is_dereferenced and self.tracked_state:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment