diff options
author | Björn Gustavsson <[email protected]> | 2018-12-10 13:09:18 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-12-10 13:17:14 +0100 |
commit | 4a1ccf10f74aba2fb0e90183afa53fa51b16aa70 (patch) | |
tree | 6b0f552ba6c78fab999604e633369f96d032e5a8 | |
parent | 1fda01cb73f7f22cccf4de29a739397a9b86eda3 (diff) | |
download | otp-4a1ccf10f74aba2fb0e90183afa53fa51b16aa70.tar.gz otp-4a1ccf10f74aba2fb0e90183afa53fa51b16aa70.tar.bz2 otp-4a1ccf10f74aba2fb0e90183afa53fa51b16aa70.zip |
erl_bif_list: Remove faulty assertion
The variable can be an empty list.
-rw-r--r-- | erts/emulator/beam/erl_bif_lists.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_bif_lists.c b/erts/emulator/beam/erl_bif_lists.c index ab4869c368..b23fa77f5f 100644 --- a/erts/emulator/beam/erl_bif_lists.c +++ b/erts/emulator/beam/erl_bif_lists.c @@ -1161,8 +1161,6 @@ static BIF_RETTYPE lists_reverse_onheap(Process *c_p, if (is_nil(list)) { BIF_RET(tail); } else if (is_list(list)) { - ASSERT(is_list(tail)); - if (cells_left > CELLS_PER_RED) { return lists_reverse_alloc(c_p, list, tail); } |