2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

py2llvm/base_types: implement 'not' on 'None'

This commit is contained in:
Sebastien Bourdeauducq 2014-09-07 14:55:46 +08:00
parent dddc9259b0
commit bce687b4a0

View File

@ -26,6 +26,12 @@ class VNone(VGeneric):
r.set_const_value(builder, False)
return r
def o_not(self, builder):
r = VBool()
if builder is not None:
r.set_const_value(builder, True)
return r
class VInt(VGeneric):
def __init__(self, nbits=32):