[pypy-svn] r12191 - pypy/dist/pypy/translator/genc

tismer at codespeak.net tismer at codespeak.net
Wed May 11 16:48:46 CEST 2005


Author: tismer
Date: Wed May 11 16:48:46 2005
New Revision: 12191

Modified:
   pypy/dist/pypy/translator/genc/ctyper.py
Log:
s_binding was not initialized in all paths

Modified: pypy/dist/pypy/translator/genc/ctyper.py
==============================================================================
--- pypy/dist/pypy/translator/genc/ctyper.py	(original)
+++ pypy/dist/pypy/translator/genc/ctyper.py	Wed May 11 16:48:46 2005
@@ -124,7 +124,8 @@
             # operations that are controlled by their return type
             s_binding = self.annotator.binding(op.result, True)
         elif op.opname == 'simple_call' and isinstance(op.args[0], Constant):
-            # XXX move me elsewhere
+            # XXX move me elsewhere
+            s_binding = None
             func = op.args[0].value
             if func is lltypes.malloc:
                 assert len(op.args) == 2   # for now



More information about the Pypy-commit mailing list