Skip to content

Commit c967970

Browse files
kazutakahiratavinay-deshmukh
authored andcommitted
[lld] Remove redundant declarations (NFC) (llvm#166712)
In C++17, static constexpr members are implicitly inline, so they no longer require an out-of-line definition. Identified with readability-redundant-declaration.
1 parent 199d5c4 commit c967970

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lld/ELF/SyntheticSections.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ using llvm::support::endian::read32le;
5454
using llvm::support::endian::write32le;
5555
using llvm::support::endian::write64le;
5656

57-
constexpr size_t MergeNoTailSection::numShards;
58-
5957
static uint64_t readUint(Ctx &ctx, uint8_t *buf) {
6058
return ctx.arg.is64 ? read64(ctx, buf) : read32(ctx, buf);
6159
}

0 commit comments

Comments
 (0)