Skip to content

Commit

Permalink
Simplify code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Feb 2, 2022
1 parent 5584e18 commit d50e97f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Compiler/GC/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ def load_mem(cls, address, mem_type=None, size=None):
if mem_type == 'sd':
return cls.load_dynamic_mem(address)
else:
for i in range(res.size):
cls.mem_op(cls.load_inst, res[i], address + i)
cls.mem_op(cls.load_inst, res, address)
return res
def store_in_mem(self, address):
self.mem_op(self.store_inst, self, address)
Expand Down

0 comments on commit d50e97f

Please sign in to comment.