diff options
author | Hans Bolinder <[email protected]> | 2014-05-19 14:50:15 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2014-06-17 12:32:52 +0200 |
commit | deca0a0687285af2c807715c9cc5de0a02c16ec2 (patch) | |
tree | 5440b68685a47adeaea7b59e711b656c63ea370c /lib/stdlib | |
parent | 8498a35ce141c6e16feed198540b910b9475b2e2 (diff) | |
download | otp-deca0a0687285af2c807715c9cc5de0a02c16ec2.tar.gz otp-deca0a0687285af2c807715c9cc5de0a02c16ec2.tar.bz2 otp-deca0a0687285af2c807715c9cc5de0a02c16ec2.zip |
[dialyzer] Use the option 'dialyzer' to control the compiler
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/src/erl_expand_records.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/erl_expand_records.erl b/lib/stdlib/src/erl_expand_records.erl index 42b02ade8f..c74f68647f 100644 --- a/lib/stdlib/src/erl_expand_records.erl +++ b/lib/stdlib/src/erl_expand_records.erl @@ -841,7 +841,7 @@ optimize_is_record(H0, G0, #exprec{compile=Opts}) -> [] -> {H0,G0}; Rs0 -> - case lists:member(no_is_record_optimization, Opts) of + case lists:member(dialyzer, Opts) of % no_is_record_optimization true -> {H0,G0}; false -> @@ -968,7 +968,7 @@ neg_line(L) -> erl_parse:set_line(L, fun(Line) -> -abs(Line) end). record_offset(L, St) -> - case lists:member(annotate_records, St#exprec.compile) of + case lists:member(dialyzer, St#exprec.compile) of true when L >= 0 -> L+?REC_OFFSET; true when L < 0 -> L-?REC_OFFSET; false -> L |