OSDN Git Service

Fix missing member initializers
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 6 Jul 2016 23:30:54 +0000 (23:30 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 6 Jul 2016 23:30:54 +0000 (23:30 +0000)
This fixes the -Werror build with some combination of
warning flags.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274707 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/OnDiskHashTable.h

index 4e8320f..c28fcab 100644 (file)
@@ -325,7 +325,7 @@ public:
     Info *InfoObj;
 
   public:
-    iterator() : Data(nullptr), Len(0) {}
+    iterator() : Key(), Data(nullptr), Len(0), InfoObj(nullptr) {}
     iterator(const internal_key_type K, const unsigned char *D, offset_type L,
              Info *InfoObj)
         : Key(K), Data(D), Len(L), InfoObj(InfoObj) {}