Make sure to initialize isArray member
authorChris Lattner <sabre@nondot.org>
Mon, 21 Oct 2002 13:38:07 +0000 (13:38 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Oct 2002 13:38:07 +0000 (13:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4247 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSGraph.h
include/llvm/Analysis/DataStructure/DSGraph.h

index f1b01e7438a327b26d4509247c4d74845df3f599..908b406917ed128bca6c820eca6b0aad7915efe2 100644 (file)
@@ -127,8 +127,8 @@ class DSNode {
     unsigned Offset;                // The offset in the node
     bool isArray;                   // Have we accessed an array of elements?
 
-    TypeRec() : Ty(0), Offset(0) {}
-    TypeRec(const Type *T, unsigned O) : Ty(T), Offset(O) {}
+    TypeRec() : Ty(0), Offset(0), isArray(false) {}
+    TypeRec(const Type *T, unsigned O) : Ty(T), Offset(O), isArray(false) {}
 
     bool operator<(const TypeRec &TR) const {
       // Sort first by offset!
index f1b01e7438a327b26d4509247c4d74845df3f599..908b406917ed128bca6c820eca6b0aad7915efe2 100644 (file)
@@ -127,8 +127,8 @@ class DSNode {
     unsigned Offset;                // The offset in the node
     bool isArray;                   // Have we accessed an array of elements?
 
-    TypeRec() : Ty(0), Offset(0) {}
-    TypeRec(const Type *T, unsigned O) : Ty(T), Offset(O) {}
+    TypeRec() : Ty(0), Offset(0), isArray(false) {}
+    TypeRec(const Type *T, unsigned O) : Ty(T), Offset(O), isArray(false) {}
 
     bool operator<(const TypeRec &TR) const {
       // Sort first by offset!