Skip to content

Commit 5301a2f

Browse files
[IR] Remove redundant declarations (NFC) (#166084)
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 1c727ba commit 5301a2f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/IR/ModuleSummaryIndex.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ static cl::opt<bool> ImportConstantsWithRefs(
3434
"import-constants-with-refs", cl::init(true), cl::Hidden,
3535
cl::desc("Import constant global variables with references"));
3636

37-
constexpr uint32_t FunctionSummary::ParamAccess::RangeWidth;
38-
3937
FunctionSummary FunctionSummary::ExternalNode =
4038
FunctionSummary::makeDummyFunctionSummary(
4139
SmallVector<FunctionSummary::EdgeTy, 0>());
@@ -88,8 +86,6 @@ std::pair<unsigned, unsigned> FunctionSummary::specialRefCounts() const {
8886
return {RORefCnt, WORefCnt};
8987
}
9088

91-
constexpr uint64_t ModuleSummaryIndex::BitcodeSummaryVersion;
92-
9389
uint64_t ModuleSummaryIndex::getFlags() const {
9490
uint64_t Flags = 0;
9591
// Flags & 0x4 is reserved. DO NOT REUSE.

0 commit comments

Comments
 (0)