Mercurial > lcfOS
diff python/target.py @ 277:046017431c6a
Started register allocator
author | Windel Bouwman |
---|---|
date | Thu, 26 Sep 2013 21:14:25 +0200 |
parents | 6f2423df0675 |
children | 02385f62f250 |
line wrap: on
line diff
--- a/python/target.py Mon Sep 16 21:51:17 2013 +0200 +++ b/python/target.py Thu Sep 26 21:14:25 2013 +0200 @@ -184,8 +184,7 @@ rops = [roptype.Create(vop) for roptype, vop in zip(ic.operands, vi.operands)] # Check if we succeeded: - optypes = tuple(map(type, rops)) - if ic.operands == optypes: + if all(isinstance(rop, optype) for rop, optype in zip(rops, ic.operands)): return ic(*rops) raise CompilerError('No suitable instruction found for "{0}"'.format(vi))