We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7803f45 commit c73153cCopy full SHA for c73153c
src/mlang/backend_ir/bir_interpreter.ml
@@ -479,11 +479,10 @@ module Make (N : Bir_number.NumberInterface) = struct
479
| TableVar _ -> assert false
480
(* should not happen *)
481
with Not_found ->
482
- (* Cli.warning_print
483
- * "Var %s used before definition, assumed undefined.\n%s"
484
- * (Pos.unmark var.Variable.name)
485
- * (Pos.retrieve_loc_text (Pos.get_position e)); *)
486
- Undefined
+ Errors.raise_spanned_error
+ ("Var not found (should not happen): "
+ ^ Pos.unmark (Bir.var_to_mir var).Mir.Variable.name)
+ (Pos.get_position e)
487
in
488
r
489
| GenericTableIndex -> (
0 commit comments