forked from AbleOS/holey-bytes
forgot about pointers
Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
parent
95e1e8bcab
commit
786e3e6bfd
|
@ -648,8 +648,10 @@ impl FuncBuilder<'_, '_> {
|
|||
let [lh, rh] = [self.value_of(lhs), self.value_of(rhs)];
|
||||
|
||||
let is_int_op = node.ty.is_integer()
|
||||
|| node.ty.is_pointer()
|
||||
|| (node.ty == hbty::Id::BOOL
|
||||
&& (self.nodes[lhs].ty.is_integer()
|
||||
|| node.ty.is_pointer()
|
||||
|| self.nodes[lhs].ty == hbty::Id::BOOL));
|
||||
let is_float_op = node.ty.is_float()
|
||||
|| (node.ty == hbty::Id::BOOL && self.nodes[lhs].ty.is_float());
|
||||
|
|
Loading…
Reference in a new issue