Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor tidy up
  • Loading branch information
markshannon committed Jul 30, 2024
commit 76a364f52c26dea47ca089b225d3ddf753e7bc10
6 changes: 2 additions & 4 deletions Tools/cases_generator/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ def unused(defn: StackItem) -> "Local":

@staticmethod
def local(defn: StackItem) -> "Local":
if defn.is_array():
return Local(defn, False, True, True)
else:
return Local(defn, True, False, True)
array = defn.is_array()
return Local(defn, not array, array, True)

@staticmethod
def redefinition(var: StackItem, prev: "Local") -> "Local":
Expand Down