diff options
author | John Högberg <[email protected]> | 2019-03-04 16:23:30 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2019-03-05 15:41:20 +0100 |
commit | 6073a054e098820a87a3c19d133348bcbfc6556b (patch) | |
tree | ab0193664d8c5194270127b23d3e74205cb09a50 /lib/compiler/src | |
parent | 359b065cf89d8513b1bfa6c4fd2699c72e2a7cb9 (diff) | |
download | otp-6073a054e098820a87a3c19d133348bcbfc6556b.tar.gz otp-6073a054e098820a87a3c19d133348bcbfc6556b.tar.bz2 otp-6073a054e098820a87a3c19d133348bcbfc6556b.zip |
beam_validator: Style fix for asserts in list comprehensions
Diffstat (limited to 'lib/compiler/src')
-rw-r--r-- | lib/compiler/src/beam_validator.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl index 18e650f774..42d5f0ce4c 100644 --- a/lib/compiler/src/beam_validator.erl +++ b/lib/compiler/src/beam_validator.erl @@ -1110,7 +1110,7 @@ verify_put_map(Op, Fail, Src, Dst, Live, List, Vst0) -> assert_type(map, Src, Vst0), verify_live(Live, Vst0), verify_y_init(Vst0), - [assert_term(Term, Vst0) || Term <- List], + _ = [assert_term(Term, Vst0) || Term <- List], Vst = heap_alloc(0, Vst0), branch(Fail, Vst, @@ -1446,7 +1446,7 @@ assert_arities(_) -> error(bad_tuple_arity_list). %%% float_op(Ss, Dst, Vst0) -> - [assert_freg_set(S, Vst0) || S <- Ss], + _ = [assert_freg_set(S, Vst0) || S <- Ss], assert_fls(cleared, Vst0), Vst = set_fls(cleared, Vst0), set_freg(Dst, Vst). @@ -2180,7 +2180,7 @@ get_tuple_size({integer,Sz}) -> Sz; get_tuple_size(_) -> 0. validate_src(Ss, Vst) when is_list(Ss) -> - [assert_term(S, Vst) || S <- Ss], + _ = [assert_term(S, Vst) || S <- Ss], ok. %% get_term_type(Src, ValidatorState) -> Type |