mark is/2 allocated permanent variables as safe, add CompareNumber terms to ClauseType::is_inlined
This commit is contained in:
@@ -803,7 +803,6 @@ impl<'b> CodeGenerator<'b> {
|
||||
let at = match &terms[0] {
|
||||
&Term::Var(ref vr, ref name) => {
|
||||
let var_num = name.to_var_num().unwrap();
|
||||
self.marker.mark_temp_to_safe_perm(var_num);
|
||||
|
||||
self.marker.mark_var::<QueryInstruction>(
|
||||
var_num,
|
||||
@@ -813,6 +812,8 @@ impl<'b> CodeGenerator<'b> {
|
||||
code,
|
||||
);
|
||||
|
||||
self.marker.mark_safe_var_unconditionally(var_num);
|
||||
|
||||
compile_expr!(self, &terms[1], term_loc, code)
|
||||
}
|
||||
&Term::Literal(_, c @ Literal::Integer(_) |
|
||||
|
||||
Reference in New Issue
Block a user