Commit edc18973 authored by Stefan Behnel's avatar Stefan Behnel

fix IndexNode.is_simple() for buffer access

parent a29a9802
......@@ -2015,6 +2015,8 @@ class IndexNode(ExprNode):
return self.base.is_ephemeral()
def is_simple(self):
if self.is_buffer_access:
return False
base = self.base
return (base.is_simple() and self.index.is_simple()
and base.type and (base.type.is_ptr or base.type.is_array))
......
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