From f98e0ef92a343d6cead83c0a39b9b779739dc63f Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 18 Jan 2023 20:57:24 +0800 Subject: [PATCH] Refactor --- elf/output-chunks.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elf/output-chunks.cc b/elf/output-chunks.cc index fcc1e37e..b46e97b8 100644 --- a/elf/output-chunks.cc +++ b/elf/output-chunks.cc @@ -2007,8 +2007,7 @@ void MergedSection::write_to(Context &ctx, u8 *buf) { for (i64 j = shard_size * i; j < shard_size * (i + 1); j++) if (const char *key = map.get_key(j)) - if (SectionFragment &frag = map.values[j]; - frag.is_alive.load(std::memory_order_relaxed)) + if (SectionFragment &frag = map.values[j]; frag.is_alive) memcpy(buf + frag.offset, key, map.key_sizes[j]); }); }