aboutsummaryrefslogtreecommitdiff
path: root/gcc/tsan.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tsan.c')
-rw-r--r--gcc/tsan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tsan.c b/gcc/tsan.c
index d69432e..aba21f8 100644
--- a/gcc/tsan.c
+++ b/gcc/tsan.c
@@ -175,7 +175,7 @@ instrument_expr (gimple_stmt_iterator gsi, tree expr, bool is_write)
if ((align - 1) & bitpos)
{
align = (align - 1) & bitpos;
- align = align & -align;
+ align = least_bit_hwi (align);
}
expr = build_fold_addr_expr (unshare_expr (base));
expr = build2 (MEM_REF, char_type_node, expr,