[pypy-svn] r15442 - pypy/dist/pypy/translator/llvm2

rxe at codespeak.net rxe at codespeak.net
Sat Jul 30 21:50:41 CEST 2005


Author: rxe
Date: Sat Jul 30 21:50:40 2005
New Revision: 15442

Modified:
   pypy/dist/pypy/translator/llvm2/opwriter.py
Log:
Double oops.


Modified: pypy/dist/pypy/translator/llvm2/opwriter.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/opwriter.py	(original)
+++ pypy/dist/pypy/translator/llvm2/opwriter.py	Sat Jul 30 21:50:40 2005
@@ -185,7 +185,7 @@
     def direct_invoke(self, op):
         # XXX hack as per remove_voids()
         op_args = [arg for arg in op.args
-                   if arg.concretetype is not Void]
+                   if arg.concretetype is not lltype.Void]
 
         assert len(op_args) >= 1
         assert len(self.block.exits) >= 2   #at least one label and one exception label
@@ -237,7 +237,7 @@
             self.codewriter.call(ll_issubclass_cond,
                                  'bool',
                                  ll_exception_match,
-                                 [tmpvar2, type.ref],
+                                 [etype.ref, tmpvar2],
                                  [lltype_of_exception_type, lltype_of_exception_type])
             self.codewriter.br(ll_issubclass_cond, not_this_exception_label, exc_found_label)
             self.codewriter.label(not_this_exception_label)



More information about the Pypy-commit mailing list