From: Chris Lattner Date: Mon, 21 Oct 2002 13:38:07 +0000 (+0000) Subject: Make sure to initialize isArray member X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2bf30fd65a7ad06a7da3fb1794ae48f2ecacfc71;p=oota-llvm.git Make sure to initialize isArray member git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4247 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h index f1b01e7438a..908b406917e 100644 --- a/include/llvm/Analysis/DSGraph.h +++ b/include/llvm/Analysis/DSGraph.h @@ -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! diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index f1b01e7438a..908b406917e 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -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!