aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/main/hipe.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2016-05-27 15:51:01 +0200
committerSverker Eriksson <[email protected]>2016-05-31 12:19:59 +0200
commit4ae10746a3d2dd2904d0da5b54700b9a152806ed (patch)
treedc5f84c83efe49f559efbc8ecd216f68b3bdea9c /lib/hipe/main/hipe.erl
parentcbb325bd193fd407c4495e95419512312febcc1c (diff)
downloadotp-4ae10746a3d2dd2904d0da5b54700b9a152806ed.tar.gz
otp-4ae10746a3d2dd2904d0da5b54700b9a152806ed.tar.bz2
otp-4ae10746a3d2dd2904d0da5b54700b9a152806ed.zip
Cleanups in hipe/main and hipe/rtl
* Rewrite matching statements in ?when_option macro to form that silences dialyzer's unmatched_return warnings * Treat compiler warnings as errors when compiling files in main
Diffstat (limited to 'lib/hipe/main/hipe.erl')
-rw-r--r--lib/hipe/main/hipe.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/hipe/main/hipe.erl b/lib/hipe/main/hipe.erl
index 0eaf06cb06..6c525dd143 100644
--- a/lib/hipe/main/hipe.erl
+++ b/lib/hipe/main/hipe.erl
@@ -596,16 +596,16 @@ fix_beam_exports([], Exports) ->
Exports.
get_beam_icode(Mod, {BeamCode, Exports}, File, Options) ->
- ?option_time({ok, Icode} =
- (catch {ok, hipe_beam_to_icode:module(BeamCode, Options)}),
- "BEAM-to-Icode", Options),
+ {ok, Icode} =
+ ?option_time((catch {ok, hipe_beam_to_icode:module(BeamCode, Options)}),
+ "BEAM-to-Icode", Options),
BeamBin = get_beam_code(File),
{{Mod, Exports, Icode}, BeamBin}.
get_core_icode(Mod, Core, File, Options) ->
- ?option_time({ok, Icode} =
- (catch {ok, cerl_to_icode:module(Core, Options)}),
- "BEAM-to-Icode", Options),
+ {ok, Icode} =
+ ?option_time((catch {ok, cerl_to_icode:module(Core, Options)}),
+ "BEAM-to-Icode", Options),
NeedBeamCode = not proplists:get_bool(load, Options),
BeamBin =
case NeedBeamCode of