diff options
-rw-r--r-- | include/Support/DenseMap.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/DenseMap.h | 2 | ||||
-rw-r--r-- | include/llvm/ADT/IndexedMap.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/Support/DenseMap.h b/include/Support/DenseMap.h index 9d713d97c3..9d55435c91 100644 --- a/include/Support/DenseMap.h +++ b/include/Support/DenseMap.h @@ -33,7 +33,7 @@ class DenseMap { ToIndexT toIndex_; public: - DenseMap() { } + DenseMap() : nullVal_(T()) { } explicit DenseMap(const T& val) : nullVal_(val) { } diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index 9d713d97c3..9d55435c91 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -33,7 +33,7 @@ class DenseMap { ToIndexT toIndex_; public: - DenseMap() { } + DenseMap() : nullVal_(T()) { } explicit DenseMap(const T& val) : nullVal_(val) { } diff --git a/include/llvm/ADT/IndexedMap.h b/include/llvm/ADT/IndexedMap.h index 9d713d97c3..9d55435c91 100644 --- a/include/llvm/ADT/IndexedMap.h +++ b/include/llvm/ADT/IndexedMap.h @@ -33,7 +33,7 @@ class DenseMap { ToIndexT toIndex_; public: - DenseMap() { } + DenseMap() : nullVal_(T()) { } explicit DenseMap(const T& val) : nullVal_(val) { } |