[pypy-svn] r14125 - pypy/dist/pypy/translator/llvm2
hpk at codespeak.net
hpk at codespeak.net
Sun Jul 3 12:53:24 CEST 2005
Author: hpk
Date: Sun Jul 3 12:53:18 2005
New Revision: 14125
Modified:
pypy/dist/pypy/translator/llvm2/arraynode.py
pypy/dist/pypy/translator/llvm2/funcnode.py
Log:
some assertions
Modified: pypy/dist/pypy/translator/llvm2/arraynode.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/arraynode.py (original)
+++ pypy/dist/pypy/translator/llvm2/arraynode.py Sun Jul 3 12:53:18 2005
@@ -8,6 +8,7 @@
_issetup = False
def __init__(self, db, array):
self.db = db
+ assert isinstance(array, lltype.ArrayType)
self.array = array
self.ref_template = "%%array.%s" % array.OF
self.ref = self.ref_template + ".0"
Modified: pypy/dist/pypy/translator/llvm2/funcnode.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/funcnode.py (original)
+++ pypy/dist/pypy/translator/llvm2/funcnode.py Sun Jul 3 12:53:18 2005
@@ -13,6 +13,7 @@
def __init__(self, db, type_):
self.db = db
+ assert isinstance(type_, lltype.FuncType)
self.type_ = type_
ref = '"ft.%s.%s"' % (type_, FuncTypeNode.func_type_node_counter)
self.ref = ref.replace(" ", "")
More information about the Pypy-commit
mailing list