From: Evan Cheng Date: Thu, 25 Mar 2010 05:50:26 +0000 (+0000) Subject: Make sure SDDbgValue.Invalid is initialized to false by all the constructors. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c388ace6f9012c503630eb633e3977e0fc42bb00;p=oota-llvm.git Make sure SDDbgValue.Invalid is initialized to false by all the constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99487 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h b/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h index eaa04abe08a..7638ea2ae16 100644 --- a/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h +++ b/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h @@ -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; }