expr.rs: FunctionCall: call translate_expr() from translate_condition_expr()

This commit is contained in:
Jussi Saurio
2025-02-16 08:59:07 +02:00
parent b93e01d59f
commit 7023ffc215

View File

@@ -272,7 +272,7 @@ pub fn translate_condition_expr(
}
}
}
ast::Expr::Literal(_) | ast::Expr::Cast { .. } => {
ast::Expr::Literal(_) | ast::Expr::Cast { .. } | ast::Expr::FunctionCall { .. } => {
let reg = program.alloc_register();
translate_expr(program, Some(referenced_tables), expr, reg, resolver)?;
emit_cond_jump(program, condition_metadata, reg);