aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/cerl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-01-15 11:47:20 +0100
committerFredrik Gustafsson <[email protected]>2013-01-15 11:47:20 +0100
commitfa6771380931c7ded0ad4d36e6cd2554bb932dfc (patch)
treee5b5e1451f77ab7d4805fe2ea9e2bd110fb05134 /lib/hipe/cerl
parent0324fe0502d843830e6fe128e307601f21a60f26 (diff)
parent6f990318a43bfeda392b9bc146c7b1ac757ca644 (diff)
downloadotp-fa6771380931c7ded0ad4d36e6cd2554bb932dfc.tar.gz
otp-fa6771380931c7ded0ad4d36e6cd2554bb932dfc.tar.bz2
otp-fa6771380931c7ded0ad4d36e6cd2554bb932dfc.zip
Merge branch 'sa/dialyzer-record-field-type/OTP-10681'
* sa/dialyzer-record-field-type/OTP-10681: Fix precision of record creation violation warnings
Diffstat (limited to 'lib/hipe/cerl')
-rw-r--r--lib/hipe/cerl/erl_types.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hipe/cerl/erl_types.erl b/lib/hipe/cerl/erl_types.erl
index bc7ea17077..f5be8fb08f 100644
--- a/lib/hipe/cerl/erl_types.erl
+++ b/lib/hipe/cerl/erl_types.erl
@@ -3432,7 +3432,7 @@ record_field_diffs_to_string(?tuple([_|Fs], Arity, Tag), RecDict) ->
field_diffs([F|Fs], [{FName, DefType}|FDefs], RecDict, Acc) ->
NewAcc =
- case t_is_subtype(F, DefType) of
+ case not t_is_none(t_inf(F, DefType)) of
true -> Acc;
false ->
Str = atom_to_string(FName) ++ "::" ++ t_to_string(DefType, RecDict),