瀏覽代碼

[analyzer] error on unbound variables

Dan Korostelev 10 年之前
父節點
當前提交
98418b505d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      analyzer.ml

+ 1 - 1
analyzer.ml

@@ -695,7 +695,7 @@ module Ssa = struct
 			IntMap.find v.v_id ctx.cur_data.nd_var_map
 			IntMap.find v.v_id ctx.cur_data.nd_var_map
 		with Not_found ->
 		with Not_found ->
 			if not (has_meta Meta.Unbound v.v_meta) then
 			if not (has_meta Meta.Unbound v.v_meta) then
-				ctx.com.warning (Printf.sprintf "Unbound variable %s" v.v_name) p;
+				error (Printf.sprintf "Unbound variable %s" v.v_name) p;
 			v
 			v
 
 
 	let close_join_node ctx node p =
 	let close_join_node ctx node p =