diff options
author | Björn Gustavsson <[email protected]> | 2018-08-15 12:35:21 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-08-15 12:35:21 +0200 |
commit | dacfafd97ed955b9c567f0efbc8553286360b0d2 (patch) | |
tree | 21ff0b2abffea046036e7bc7e6b6f2be18c7194c /lib/compiler/src/beam_utils.erl | |
parent | 3921cb5ff5ae28c18374f937de12ac86f330bc9d (diff) | |
parent | ec8ae4b539bcb4b4eedf8dd3eb1e7bcdfe558580 (diff) | |
download | otp-dacfafd97ed955b9c567f0efbc8553286360b0d2.tar.gz otp-dacfafd97ed955b9c567f0efbc8553286360b0d2.tar.bz2 otp-dacfafd97ed955b9c567f0efbc8553286360b0d2.zip |
Merge pull request #1927 from bjorng/bjorn/compiler/double-receives/ERL-703/OTP-15235
Fix compiler crash when compiling double receives
Diffstat (limited to 'lib/compiler/src/beam_utils.erl')
-rw-r--r-- | lib/compiler/src/beam_utils.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_utils.erl b/lib/compiler/src/beam_utils.erl index 3bb671f034..5580d2f123 100644 --- a/lib/compiler/src/beam_utils.erl +++ b/lib/compiler/src/beam_utils.erl @@ -1164,7 +1164,7 @@ defs([{loop_rec,{f,L},{x,0}}=I|Is], _Regs, D0) -> D = update_regs(L, RegsAtLabel, D0), [I|defs(Is, init_def_regs(1), D)]; defs([{loop_rec_end,_}=I|Is], _Regs, D) -> - [I|defs(Is, 0, D)]; + [I|defs_unreachable(Is, D)]; defs([{make_fun2,_,_,_,_}=I|Is], _Regs, D) -> [I|defs(Is, 1, D)]; defs([{move,_,Dst}=I|Is], Regs0, D) -> |