diff options
| author | Björn Gustavsson <bjorn@erlang.org> | 2023-04-18 07:20:50 +0200 |
|---|---|---|
| committer | Björn Gustavsson <bjorn@erlang.org> | 2023-04-18 07:28:22 +0200 |
| commit | dedc07d6e600cb9b0c6cc89a862114a1ff071d85 (patch) | |
| tree | aeace4f7d3bb9dba24ff979ba552620f5d6f755e /lib/compiler/src | |
| parent | 7022abd762883726cf33e616769aca3727ab0354 (diff) | |
| download | erlang-dedc07d6e600cb9b0c6cc89a862114a1ff071d85.tar.gz | |
Fix failure to load module with disabled optimizations
Closes #7128
Diffstat (limited to 'lib/compiler/src')
| -rw-r--r-- | lib/compiler/src/beam_ssa_pre_codegen.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_ssa_pre_codegen.erl b/lib/compiler/src/beam_ssa_pre_codegen.erl index e3406f12de..dc76755aad 100644 --- a/lib/compiler/src/beam_ssa_pre_codegen.erl +++ b/lib/compiler/src/beam_ssa_pre_codegen.erl @@ -680,7 +680,7 @@ sanitize([L|Ls], InBlocks, Count0, Values0, Blocks0) -> no_change -> Blk = sanitize_last(Blk0, Values0), Blocks1 = Blocks0#{L := Blk}, - Blocks = sanitize_reachable(Blk0, Blocks1), + Blocks = sanitize_reachable(Blk, Blocks1), sanitize(Ls, InBlocks, Count0, Values0, Blocks); {Is,Last,Count,Values} -> Blk1 = Blk0#b_blk{is=Is,last=Last}, |
