diff options
author | Björn Gustavsson <[email protected]> | 2015-04-21 09:27:40 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-23 13:44:03 +0200 |
commit | 16d97a57e5cd0f820884e4223b92f50e3ce39b01 (patch) | |
tree | b873287526bb9834c6b052a4ae16dcca33999028 /lib | |
parent | 94a33dfb4becbf5ce4da487ac50cfa9d9d760708 (diff) | |
download | otp-16d97a57e5cd0f820884e4223b92f50e3ce39b01.tar.gz otp-16d97a57e5cd0f820884e4223b92f50e3ce39b01.tar.bz2 otp-16d97a57e5cd0f820884e4223b92f50e3ce39b01.zip |
beam_validator: Remove support for removed BIF fault/1,2
The fault/1,2 BIF was removed a long time ago.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compiler/src/beam_validator.erl | 2 | ||||
-rw-r--r-- | lib/compiler/test/beam_validator_SUITE_data/state_after_fault_in_catch.S | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl index d642bf9867..c758a6095a 100644 --- a/lib/compiler/src/beam_validator.erl +++ b/lib/compiler/src/beam_validator.erl @@ -1634,8 +1634,6 @@ return_type_1(M, F, A, _) when is_atom(M), is_atom(F), is_integer(A), A >= 0 -> return_type_erl(exit, 1) -> exception; return_type_erl(throw, 1) -> exception; -return_type_erl(fault, 1) -> exception; -return_type_erl(fault, 2) -> exception; return_type_erl(error, 1) -> exception; return_type_erl(error, 2) -> exception; return_type_erl(F, A) when is_atom(F), is_integer(A), A >= 0 -> term. diff --git a/lib/compiler/test/beam_validator_SUITE_data/state_after_fault_in_catch.S b/lib/compiler/test/beam_validator_SUITE_data/state_after_fault_in_catch.S index 8e27347ed5..c3656d6218 100644 --- a/lib/compiler/test/beam_validator_SUITE_data/state_after_fault_in_catch.S +++ b/lib/compiler/test/beam_validator_SUITE_data/state_after_fault_in_catch.S @@ -14,7 +14,7 @@ {allocate,1,0}. {'catch',{y,0},{f,3}}. {move,{atom,apa},{x,0}}. - {call_ext,1,{extfunc,erlang,fault,1}}. + {call_ext,1,{extfunc,erlang,error,1}}. {label,3}. {catch_end,{y,0}}. {move,{x,1},{x,0}}. |