summaryrefslogtreecommitdiff
path: root/compiler/FunsAnalysis.ml
diff options
context:
space:
mode:
authorSon Ho2023-10-23 13:47:39 +0200
committerSon Ho2023-10-23 13:47:39 +0200
commit838cc86cb2efc8fb64a94a94b58b82d66844e7e4 (patch)
tree26f8d2064020861bd821a15b50f84f2e95ae21af /compiler/FunsAnalysis.ml
parentf11d5186b467df318f7c09eedf8b5629c165b453 (diff)
Remove some assumed types and add more support for builtin definitions
Diffstat (limited to '')
-rw-r--r--compiler/FunsAnalysis.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/FunsAnalysis.ml b/compiler/FunsAnalysis.ml
index a09a6d05..5e849ba7 100644
--- a/compiler/FunsAnalysis.ml
+++ b/compiler/FunsAnalysis.ml
@@ -88,7 +88,7 @@ let analyze_module (m : crate) (funs_map : fun_decl FunDeclId.Map.t)
can_diverge := !can_diverge || info.can_diverge
| FunId (Assumed id) ->
(* None of the assumed functions can diverge nor are considered stateful *)
- can_fail := !can_fail || Assumed.assumed_can_fail id
+ can_fail := !can_fail || Assumed.assumed_fun_can_fail id
| TraitMethod _ ->
(* We consider trait functions can fail, diverge, and are not stateful *)
can_fail := true;