Skip to content

Commit 909a38e

Browse files
committed
[llvm-debuginfo-analyzer] Fix a couple of member declarations in LVScopeCompileUnit
1 parent 09dbffd commit 909a38e

File tree

1 file changed

+2
-2
lines changed
  • llvm/include/llvm/DebugInfo/LogicalView/Core

1 file changed

+2
-2
lines changed

llvm/include/llvm/DebugInfo/LogicalView/Core/LVScope.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class LLVM_ABI LVScopeCompileUnit final : public LVScope {
473473

474474
// Record scope sizes indexed by lexical level.
475475
// Setting an initial size that will cover a very deep nested scopes.
476-
const size_t TotalInitialSize = 8;
476+
static constexpr size_t TotalInitialSize = 8;
477477
using LVTotalsEntry = std::pair<unsigned, float>;
478478
SmallVector<LVTotalsEntry> Totals;
479479
// Maximum seen lexical level. It is used to control how many entries
@@ -510,7 +510,7 @@ class LLVM_ABI LVScopeCompileUnit final : public LVScope {
510510
void addMapping(LVLine *Line, LVSectionIndex SectionIndex);
511511
LVLineRange lineRange(LVLocation *Location) const;
512512

513-
LVNameInfo NameNone = {UINT64_MAX, 0};
513+
static constexpr LVNameInfo NameNone = {UINT64_MAX, 0};
514514
void addPublicName(LVScope *Scope, LVAddress LowPC, LVAddress HighPC) {
515515
PublicNames.emplace(std::piecewise_construct, std::forward_as_tuple(Scope),
516516
std::forward_as_tuple(LowPC, HighPC - LowPC));

0 commit comments

Comments
 (0)