Skip to content

Commit 7d5f78d

Browse files
committed
Merge pull request #1713 from pguyot/w24/remove-unnecessary-check-in-select-tuple-arity
Remove unnecessary check in OP_SELECT_TUPLE_ARITY These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 72ae567 + 52f271a commit 7d5f78d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libAtomVM/opcodesswitch.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,7 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
32603260
#endif
32613261

32623262
#ifdef IMPL_EXECUTE_LOOP
3263-
if (LIKELY(term_is_tuple(src_value))) {
3263+
assert(term_is_tuple(src_value));
32643264
int arity = term_get_tuple_arity(src_value);
32653265
#endif
32663266

@@ -3280,9 +3280,6 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
32803280
}
32813281
#endif
32823282
}
3283-
#ifdef IMPL_EXECUTE_LOOP
3284-
}
3285-
#endif
32863283

32873284
#ifdef IMPL_EXECUTE_LOOP
32883285
if (!jump_to_address) {

0 commit comments

Comments
 (0)