Skip to content

Commit 85e9649

Browse files
authored
Cfg invariant allow Stack_check (#3927)
Allow Stack_check
1 parent 0ef22fb commit 85e9649

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

backend/cfg/cfg_invariants.ml

+2-5
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,8 @@ let check_stack_offset t label (block : Cfg.basic_block) =
244244
| Csel _ | Static_cast _ | Reinterpret_cast _ | Probe_is_enabled _
245245
| Opaque | Begin_region | End_region | Specific _
246246
| Name_for_debugger _ | Dls_get | Poll | Alloc _ )
247-
| Reloadretaddr | Prologue ->
248-
cur_stack_offset
249-
| Stack_check _ ->
250-
Misc.fatal_error
251-
"Cfg_invariant.check_stack_offset: unexpected stack check")
247+
| Reloadretaddr | Prologue | Stack_check _ ->
248+
cur_stack_offset)
252249
in
253250
if not (Int.equal stack_offset_after_body terminator_stack_offset)
254251
then

0 commit comments

Comments
 (0)