Make sure both member variables are initialized in the default constructor
authorReid Spencer <rspencer@reidspencer.com>
Wed, 12 Apr 2006 16:44:15 +0000 (16:44 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 12 Apr 2006 16:44:15 +0000 (16:44 +0000)
for SDOperand. This gets rid of numerous warnings in lib/CodeGen and
lib/Target when compiled with GCC 4.0.2

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27607 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index b89d980453e0d55bdb899c315edb2b497848b02b..1b7e8e659a720c07941b907b89cf94760d281b74 100644 (file)
@@ -609,7 +609,7 @@ public:
   SDNode *Val;        // The node defining the value we are using.
   unsigned ResNo;     // Which return value of the node we are using.
 
-  SDOperand() : Val(0) {}
+  SDOperand() : Val(0), ResNo(0) {}
   SDOperand(SDNode *val, unsigned resno) : Val(val), ResNo(resno) {}
 
   bool operator==(const SDOperand &O) const {