Make sure to initialize isArray member

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-10-21 13:38:07 +00:00
parent 13ec72a12a
commit 2bf30fd65a
2 changed files with 4 additions and 4 deletions

View 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!

View 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!