Make sure SDDbgValue.Invalid is initialized to false by all the constructors.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 25 Mar 2010 05:50:26 +0000 (05:50 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 25 Mar 2010 05:50:26 +0000 (05:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99487 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SDNodeDbgValue.h

index eaa04abe08a823d63d65d1cec1ad2251c911d2e4..7638ea2ae162c04276d08be37d5d32bbfdc2bfee 100644 (file)
@@ -60,14 +60,14 @@ public:
 
   // Constructor for constants.
   SDDbgValue(MDNode *mdP, Value *C, uint64_t off, DebugLoc dl, unsigned O) : 
-    mdPtr(mdP), Offset(off), DL(dl), Order(O) {
+    mdPtr(mdP), Offset(off), DL(dl), Order(O), Invalid(false) {
     kind = CONST;
     u.Const = C;
   }
 
   // Constructor for frame indices.
   SDDbgValue(MDNode *mdP, unsigned FI, uint64_t off, DebugLoc dl, unsigned O) : 
-    mdPtr(mdP), Offset(off), DL(dl), Order(O) {
+    mdPtr(mdP), Offset(off), DL(dl), Order(O), Invalid(false) {
     kind = FRAMEIX;
     u.FrameIx = FI;
   }