forked from M-Labs/nac3
[core] codegen/expr: Add compilation error for unsupported cmpop
This commit is contained in:
parent
d7952d0629
commit
c407622f5c
@ -2208,7 +2208,10 @@ pub fn gen_cmpop_expr_with_values<'ctx, G: CodeGenerator>(
|
|||||||
|
|
||||||
ctx.ctx.bool_type().get_poison()
|
ctx.ctx.bool_type().get_poison()
|
||||||
} else {
|
} else {
|
||||||
unimplemented!()
|
return Err(format!("'{}' not supported between instances of '{}' and '{}'",
|
||||||
|
op.op_info().symbol,
|
||||||
|
ctx.unifier.stringify(left_ty),
|
||||||
|
ctx.unifier.stringify(right_ty)))
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(prev?.map(|v| ctx.builder.build_and(v, current, "cmp").unwrap()).or(Some(current)))
|
Ok(prev?.map(|v| ctx.builder.build_and(v, current, "cmp").unwrap()).or(Some(current)))
|
||||||
|
Loading…
Reference in New Issue
Block a user