diff options
author | Björn Gustavsson <[email protected]> | 2015-04-24 10:03:42 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-29 12:24:43 +0200 |
commit | 2838a341f074dbc4597d90af86e2dda6647dd083 (patch) | |
tree | 4a3e12313f4fb6e6f5e409db31b13d23b401120b /lib/compiler/src/v3_core.erl | |
parent | 41c1f4c3eab54d776e2287cab09cc4ab0f7ee25e (diff) | |
download | otp-2838a341f074dbc4597d90af86e2dda6647dd083.tar.gz otp-2838a341f074dbc4597d90af86e2dda6647dd083.tar.bz2 otp-2838a341f074dbc4597d90af86e2dda6647dd083.zip |
v3_core, v3_codegen: Eliminate old-style catches
Diffstat (limited to 'lib/compiler/src/v3_core.erl')
-rw-r--r-- | lib/compiler/src/v3_core.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compiler/src/v3_core.erl b/lib/compiler/src/v3_core.erl index ed7b55df07..2d12d832a3 100644 --- a/lib/compiler/src/v3_core.erl +++ b/lib/compiler/src/v3_core.erl @@ -869,10 +869,10 @@ constant_bin_1(Es) -> ({float,_,F}, B) -> {value,F,B}; ({atom,_,undefined}, B) -> {value,undefined,B} end, - case catch eval_bits:expr_grp(Es, EmptyBindings, EvalFun) of + try eval_bits:expr_grp(Es, EmptyBindings, EvalFun) of {value,Bin,EmptyBindings} -> - Bin; - _ -> + Bin + catch error:_ -> error end. |