aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2020-12-29 21:22:24 +0100
committerCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2020-12-29 21:22:24 +0100
commit5818b9ff8dcc8a48bdbd07ba631b4e150f81831b (patch)
tree69501408a3707fc5b58a98263041ca498a0fa0b0 /rpython
parentrename length and be more careful about its uses (diff)
downloadpypy-5818b9ff8dcc8a48bdbd07ba631b4e150f81831b.tar.gz
pypy-5818b9ff8dcc8a48bdbd07ba631b4e150f81831b.tar.bz2
pypy-5818b9ff8dcc8a48bdbd07ba631b4e150f81831b.zip
store everything erased
Diffstat (limited to 'rpython')
-rw-r--r--rpython/rlib/rerased.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpython/rlib/rerased.py b/rpython/rlib/rerased.py
index 66666505bd..b27dc3c8ff 100644
--- a/rpython/rlib/rerased.py
+++ b/rpython/rlib/rerased.py
@@ -81,6 +81,7 @@ def new_erasing_pair(name):
identity = ErasingPairIdentity(name)
def erase(x):
+ assert not isinstance(x, Erased)
return Erased(x, identity)
def unerase(y):