[llvm-commits] [llvm] r99487 - /llvm/trunk/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h

Evan Cheng evan.cheng at apple.com
Wed Mar 24 22:50:26 PDT 2010


Author: evancheng
Date: Thu Mar 25 00:50:26 2010
New Revision: 99487

URL: http://llvm.org/viewvc/llvm-project?rev=99487&view=rev
Log:
Make sure SDDbgValue.Invalid is initialized to false by all the constructors.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h?rev=99487&r1=99486&r2=99487&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h Thu Mar 25 00:50:26 2010
@@ -60,14 +60,14 @@
 
   // 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;
   }





More information about the llvm-commits mailing list