Skip to content

Commit 9b987e0

Browse files
[Sema] Modernize ShadowMapEntry (NFC)
1 parent abed823 commit 9b987e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaCodeComplete.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ class ResultBuilder {
9898

9999
/// When the entry contains a single declaration, this is
100100
/// the index associated with that entry.
101-
unsigned SingleDeclIndex;
101+
unsigned SingleDeclIndex = 0;
102102

103103
public:
104-
ShadowMapEntry() : SingleDeclIndex(0) {}
104+
ShadowMapEntry() = default;
105105
ShadowMapEntry(const ShadowMapEntry &) = delete;
106106
ShadowMapEntry(ShadowMapEntry &&Move) { *this = std::move(Move); }
107107
ShadowMapEntry &operator=(const ShadowMapEntry &) = delete;

0 commit comments

Comments
 (0)