summaryrefslogtreecommitdiff
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2020-02-26 08:43:26 +0100
committerGitHub <noreply@github.com>2020-02-26 08:43:26 +0100
commitdfa21893dae963c615b4c1dde0dd45684f0d29b9 (patch)
tree2d8197a6983027b097416446111f527c246c0bc7 /lib/compiler/src
parent55bc9c8f75d6bfff922d98768e689e721b229e6d (diff)
parent00c15c32d915d9b7e7708de7965da3bf85feb204 (diff)
downloaderlang-dfa21893dae963c615b4c1dde0dd45684f0d29b9.tar.gz
Merge pull request #2553 from bjorng/bjorn/compiler/beam_ssa_bool
Make sure that 'fail' in a guard makes the guard fail
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/beam_ssa_bool.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_ssa_bool.erl b/lib/compiler/src/beam_ssa_bool.erl
index 0b05d97064..0860029c59 100644
--- a/lib/compiler/src/beam_ssa_bool.erl
+++ b/lib/compiler/src/beam_ssa_bool.erl
@@ -237,7 +237,7 @@ get_phi_info_instr(#b_set{op=phi,dst=Dst,args=Args}, From, Sub0) ->
#{Dst:='=:='} ->
get_phi_info_single_use(Dst, Sub0);
#{Dst:={true_or_any,_}} ->
- {true,Sub0};
+ get_phi_info_single_use(Dst, Sub0);
#{} ->
{false,Sub0}
end,