Skip to content

Commit 75d93f0

Browse files
kazutakahirataLukacma
authored andcommitted
[ADT] Use default member initialization in IndexedMap (NFC) (llvm#164754)
1 parent b2ffa0c commit 75d93f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/ADT/IndexedMap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ class IndexedMap {
4444
using StorageT = SmallVector<T, 0>;
4545

4646
StorageT storage_;
47-
T nullVal_;
47+
T nullVal_ = T();
4848
ToIndexT toIndex_;
4949

5050
public:
51-
IndexedMap() : nullVal_(T()) {}
51+
IndexedMap() = default;
5252

5353
explicit IndexedMap(const T &val) : nullVal_(val) {}
5454

0 commit comments

Comments
 (0)