diff options
author | Kostis Sagonas <[email protected]> | 2014-02-12 13:46:30 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-02-13 12:50:45 +0100 |
commit | 306a28b7d4c670e54e6bbc0b6b4bd4f3b6a8e2dc (patch) | |
tree | da1d3f055c69d653ec68dfae55c6809599ec0c45 /lib | |
parent | d7d240bc3d03cf708f6feaf20efac1addcd76242 (diff) | |
download | otp-306a28b7d4c670e54e6bbc0b6b4bd4f3b6a8e2dc.tar.gz otp-306a28b7d4c670e54e6bbc0b6b4bd4f3b6a8e2dc.tar.bz2 otp-306a28b7d4c670e54e6bbc0b6b4bd4f3b6a8e2dc.zip |
Change a list comprehension to a foreach/2 call
Partly to avoid unmatched return warnings from dialyzer and in order
to preserve the style of other similar-looking code in that file.
While at it, fix the wording in one comment.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compiler/src/beam_validator.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl index 682f7adbc2..2486d486ed 100644 --- a/lib/compiler/src/beam_validator.erl +++ b/lib/compiler/src/beam_validator.erl @@ -882,7 +882,7 @@ valfun_4(_, _) -> verify_put_map(Fail, Src, Dst, Live, List, Vst0) -> verify_live(Live, Vst0), verify_y_init(Vst0), - [assert_term(Term, Vst0) || Term <- List], + foreach(fun (Term) -> assert_term(Term, Vst0) end, List), assert_term(Src, Vst0), Vst1 = heap_alloc(0, Vst0), Vst2 = branch_state(Fail, Vst1), @@ -909,7 +909,7 @@ validate_bs_skip_utf(Fail, Ctx, Live, Vst0) -> branch_state(Fail, Vst). %% -%% Special state handling for setelement/3 and the set_tuple_element/3 instruction. +%% Special state handling for setelement/3 and set_tuple_element/3 instructions. %% A possibility for garbage collection must not occur between setelement/3 and %% set_tuple_element/3. %% |