Commit ff8480f4 authored by Stefan Behnel's avatar Stefan Behnel

PyTypeTestNode and NoneCheckNode are 'simple' when their argument is

parent bdb6df8f
...@@ -7048,6 +7048,9 @@ class PyTypeTestNode(CoercionNode): ...@@ -7048,6 +7048,9 @@ class PyTypeTestNode(CoercionNode):
return False return False
return self.arg.may_be_none() return self.arg.may_be_none()
def is_simple(self):
return self.arg.is_simple()
def result_in_temp(self): def result_in_temp(self):
return self.arg.result_in_temp() return self.arg.result_in_temp()
...@@ -7098,6 +7101,9 @@ class NoneCheckNode(CoercionNode): ...@@ -7098,6 +7101,9 @@ class NoneCheckNode(CoercionNode):
def may_be_none(self): def may_be_none(self):
return False return False
def is_simple(self):
return self.arg.is_simple()
def result_in_temp(self): def result_in_temp(self):
return self.arg.result_in_temp() return self.arg.result_in_temp()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment