aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-21 13:38:07 +0000
committerChris Lattner <sabre@nondot.org>2002-10-21 13:38:07 +0000
commit2bf30fd65a7ad06a7da3fb1794ae48f2ecacfc71 (patch)
treeb4e7706c9846e284d45a7fb0137d479f3fefdecb
parent13ec72a12aaf5bc717082fd70ebd388bac64ecaf (diff)
Make sure to initialize isArray member
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4247 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/DSGraph.h4
-rw-r--r--include/llvm/Analysis/DataStructure/DSGraph.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h
index f1b01e7438..908b406917 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 f1b01e7438..908b406917 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!