diff options
author | Björn Gustavsson <[email protected]> | 2017-12-06 10:45:42 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-12-07 10:09:35 +0100 |
commit | f5ed607f52aebe66554e0b762a2ea5452a38ceea (patch) | |
tree | 49888ec5a7716a9cd7784156cb7f56dbf711134a /lib/compiler/src | |
parent | 5f3954da5a051f859a87371f720fe774a6a479ba (diff) | |
download | otp-f5ed607f52aebe66554e0b762a2ea5452a38ceea.tar.gz otp-f5ed607f52aebe66554e0b762a2ea5452a38ceea.tar.bz2 otp-f5ed607f52aebe66554e0b762a2ea5452a38ceea.zip |
v3_codegen: Remove uncovered clause in bs_rename_ctx/4
Remove handling of #k_match{} in bsm_rename_ctx/4.
It can never be reached because bsm_rename_ctx/4 will never recurse
into a block that is not in the scope of a #k_protected{}, and
in a #k_protected{}, #k_match{} is not allowed.
Diffstat (limited to 'lib/compiler/src')
-rw-r--r-- | lib/compiler/src/v3_codegen.erl | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl index d98441545b..5eabe82cd7 100644 --- a/lib/compiler/src/v3_codegen.erl +++ b/lib/compiler/src/v3_codegen.erl @@ -702,9 +702,6 @@ bsm_rename_ctx(#k_protected{arg=Ts0}=Prot, Old, New, _InProt) -> InProt = true, Ts = bsm_rename_ctx_list(Ts0, Old, New, InProt), bsm_forget_var(Prot#k_protected{arg=Ts}, Old); -bsm_rename_ctx(#k_match{body=Ms0}=Match, Old, New, InProt) -> - Ms = bsm_rename_ctx(Ms0, Old, New, InProt), - Match#k_match{body=Ms}; bsm_rename_ctx(#k_guard_match{body=Ms0}=Match, Old, New, InProt) -> Ms = bsm_rename_ctx(Ms0, Old, New, InProt), Match#k_guard_match{body=Ms}; |