mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-08-08 04:39:46 +00:00
codegen: Check we don't pop too many indexes
This commit is contained in:
parent
f6506a2563
commit
08384ac7fb
@ -357,6 +357,7 @@ class CodeWriter:
|
||||
return index
|
||||
|
||||
def push_index(self):
|
||||
assert self.current_index > 0
|
||||
self.current_index = self.current_index - 1
|
||||
|
||||
class Index:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user