aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_ssa_bsm.erl
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-05-29 16:11:46 +0200
committerJohn Högberg <[email protected]>2019-06-12 15:03:46 +0200
commit48f83e165a2dae8ed04a74ba3c6308250168f790 (patch)
tree95c292f7c74aedad0c0bd75b64eec38698dd7dba /lib/compiler/src/beam_ssa_bsm.erl
parent4411b1953bfb862aad433c2269acb82a35b0cc72 (diff)
downloadotp-48f83e165a2dae8ed04a74ba3c6308250168f790.tar.gz
otp-48f83e165a2dae8ed04a74ba3c6308250168f790.tar.bz2
otp-48f83e165a2dae8ed04a74ba3c6308250168f790.zip
beam_validator: Replace old type representation with beam_types
Diffstat (limited to 'lib/compiler/src/beam_ssa_bsm.erl')
-rw-r--r--lib/compiler/src/beam_ssa_bsm.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_ssa_bsm.erl b/lib/compiler/src/beam_ssa_bsm.erl
index 382e6f635e..abbda2ebe4 100644
--- a/lib/compiler/src/beam_ssa_bsm.erl
+++ b/lib/compiler/src/beam_ssa_bsm.erl
@@ -57,6 +57,7 @@
-export([module/2, format_error/1]).
-include("beam_ssa.hrl").
+-include("beam_types.hrl").
-import(lists, [member/2, reverse/1, splitwith/2, map/2, foldl/3, mapfoldl/3,
nth/2, max/1, unzip/1]).
@@ -879,8 +880,7 @@ annotate_context_parameters(F, ModInfo) ->
%% Assertion.
error(conflicting_parameter_types);
(K, suitable_for_reuse, Acc) ->
- T = beam_validator:type_anno(match_context),
- Acc#{ K => T };
+ Acc#{ K => #t_bs_context{} };
(_K, _V, Acc) ->
Acc
end, TypeAnno0, ParamInfo),