Skip to content

Commit e2af83f

Browse files
committed
fixup! Implement __builtin_ctz{,l,ll} via count_trailing_zeros_exprt
1 parent 56adbb2 commit e2af83f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/simplify_expr.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ simplify_exprt::resultt<>
178178
simplify_exprt::simplify_ctz(const count_trailing_zeros_exprt &expr)
179179
{
180180
const auto const_bits_opt = expr2bits(
181-
expr.op(), byte_extract_id() == ID_byte_extract_little_endian, ns);
181+
expr.op(),
182+
config.ansi_c.endianness == configt::ansi_ct::endiannesst::IS_LITTLE_ENDIAN,
183+
ns);
182184

183185
if(!const_bits_opt.has_value())
184186
return unchanged(expr);

0 commit comments

Comments
 (0)