[pypy-svn] r28520 - pypy/dist/pypy/translator/cli

antocuni at codespeak.net antocuni at codespeak.net
Thu Jun 8 15:36:51 CEST 2006


Author: antocuni
Date: Thu Jun  8 15:36:49 2006
New Revision: 28520

Modified:
   pypy/dist/pypy/translator/cli/database.py
Log:
bugfix.



Modified: pypy/dist/pypy/translator/cli/database.py
==============================================================================
--- pypy/dist/pypy/translator/cli/database.py	(original)
+++ pypy/dist/pypy/translator/cli/database.py	Thu Jun  8 15:36:49 2006
@@ -226,7 +226,10 @@
         return self.cts.lltype_to_cts(ootype.String, include_class)
 
     def init(self, ilasm):
-        ilasm.opcode('ldstr', '"%s"' % self.string._str)
+        if self.string._str is None:
+            ilasm.opcode('ldnull')
+        else:
+            ilasm.opcode('ldstr', '"%s"' % self.string._str)
 
 class RecordConst(AbstractConst):
     def __init__(self, db, record, count):



More information about the Pypy-commit mailing list