Skip to content
Snippets Groups Projects
Commit a7c4fd8c authored by Matt Wala's avatar Matt Wala
Browse files

Add an assert in case the temporary initializer policy changes.

parent 69981ae6
No related branches found
No related tags found
No related merge requests found
...@@ -252,6 +252,7 @@ class TemporarySaver(object): ...@@ -252,6 +252,7 @@ class TemporarySaver(object):
if temporary.initializer is not None: if temporary.initializer is not None:
# Temporaries with initializers do not need saving/reloading - the # Temporaries with initializers do not need saving/reloading - the
# code generation takes care of emitting the initializers. # code generation takes care of emitting the initializers.
assert temporary.read_only
return None return None
if temporary.base_storage is not None: if temporary.base_storage is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment