diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 17:30:19 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-06 14:57:16 +0100 |
commit | 57406f28602b0207879f08311c7e36629fb9c0bf (patch) | |
tree | 9d8828dd8fe037354d830304f9cb42d2b9be4e77 /lib/hipe | |
parent | b6d0807aebf676063ab522833ded99b2a7fb31c9 (diff) | |
download | otp-57406f28602b0207879f08311c7e36629fb9c0bf.tar.gz otp-57406f28602b0207879f08311c7e36629fb9c0bf.tar.bz2 otp-57406f28602b0207879f08311c7e36629fb9c0bf.zip |
dialyzer: Assign a type to the primop build_stacktrace
Diffstat (limited to 'lib/hipe')
-rw-r--r-- | lib/hipe/cerl/erl_bif_types.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/hipe/cerl/erl_bif_types.erl b/lib/hipe/cerl/erl_bif_types.erl index 5fda857bf1..bfffb8db41 100644 --- a/lib/hipe/cerl/erl_bif_types.erl +++ b/lib/hipe/cerl/erl_bif_types.erl @@ -585,6 +585,13 @@ type(erlang, float, 1, Xs, Opaques) -> %% Guard bif, needs to be here. type(erlang, floor, 1, Xs, Opaques) -> strict(erlang, floor, 1, Xs, fun (_) -> t_integer() end, Opaques); +%% Primop, needs to be somewhere. +type(erlang, build_stacktrace, 0, _, _Opaques) -> + t_list(t_tuple([t_module(), + t_atom(), + t_sup([t_arity(),t_list()]), + t_list(t_sup([t_tuple([t_atom('file'),t_string()]), + t_tuple([t_atom('line'),t_pos_integer()])]))])); %% Guard bif, needs to be here. type(erlang, hd, 1, Xs, Opaques) -> strict(erlang, hd, 1, Xs, fun ([X]) -> t_cons_hd(X) end, Opaques); @@ -2336,6 +2343,9 @@ arg_types(erlang, float, 1) -> %% Guard bif, needs to be here. arg_types(erlang, floor, 1) -> [t_number()]; +%% Primop, needs to be somewhere. +arg_types(erlang, build_stacktrace, 0) -> + []; %% Guard bif, needs to be here. arg_types(erlang, hd, 1) -> [t_cons()]; |