aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/icode/hipe_icode_range.erl
diff options
context:
space:
mode:
authorSverker Eriksson <sverker@erlang.org>2013-02-25 19:20:22 +0100
committerSverker Eriksson <sverker@erlang.org>2013-02-25 19:20:51 +0100
commit29bfbfdde67e7a0d182aa791317e1d80fe8d0d5d (patch)
tree4b57f3ef687e584b6500fd65c957b8da940880bb /lib/hipe/icode/hipe_icode_range.erl
parent2ca1d65b89b8d77156dcce07e9d4c24b1e8ca534 (diff)
parent6907ed77452dcf409e0e3540cf7bd876e87b54b9 (diff)
downloadotp-29bfbfdde67e7a0d182aa791317e1d80fe8d0d5d.tar.gz
otp-29bfbfdde67e7a0d182aa791317e1d80fe8d0d5d.tar.bz2
otp-29bfbfdde67e7a0d182aa791317e1d80fe8d0d5d.zip
Merge branch 'kostis/hipe-icode-range-bug'
* kostis/hipe-icode-range-bug: Fix bug related to the handling of is_number/1 by the range analysis Clean up and homogenize text messages for options OTP-10897
Diffstat (limited to 'lib/hipe/icode/hipe_icode_range.erl')
-rw-r--r--lib/hipe/icode/hipe_icode_range.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hipe/icode/hipe_icode_range.erl b/lib/hipe/icode/hipe_icode_range.erl
index c222e8a5d5..46c5a39f2c 100644
--- a/lib/hipe/icode/hipe_icode_range.erl
+++ b/lib/hipe/icode/hipe_icode_range.erl
@@ -784,6 +784,8 @@ analyse_type(Type, Info, Rewrite) ->
integer ->
TrueRange = inf(any_range(), OldVarRange),
FalseRange = inf(none_range(), OldVarRange);
+ number ->
+ TrueRange = FalseRange = OldVarRange;
_ ->
TrueRange = inf(none_range(), OldVarRange),
FalseRange = OldVarRange