[pypy-svn] r67404 - pypy/trunk/pypy/jit/backend

arigo at codespeak.net arigo at codespeak.net
Tue Sep 1 16:26:13 CEST 2009


Author: arigo
Date: Tue Sep  1 16:26:11 2009
New Revision: 67404

Modified:
   pypy/trunk/pypy/jit/backend/loopparser.py
Log:
Accept LOOP with zero input argument too.


Modified: pypy/trunk/pypy/jit/backend/loopparser.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/loopparser.py	(original)
+++ pypy/trunk/pypy/jit/backend/loopparser.py	Tue Sep  1 16:26:11 2009
@@ -214,7 +214,10 @@
         if line.startswith('LOOP END'):
             raise EndOfBlock()
         if line.startswith('LOOP'):
-            _, inputargs = line.split(" ")
+            if " " in line:
+                _, inputargs = line.split(" ")
+            else:
+                inputargs = ""
             self.current_block.inputargs = self._parse_boxes(inputargs)
             return i + 1
         if line.startswith('END'):



More information about the Pypy-commit mailing list