diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-04-12 16:44:15 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-04-12 16:44:15 +0000 |
commit | ace44dbbabe9ee0498834957632df2af0dbf9c59 (patch) | |
tree | 550b87280434fd3dd7784a40f6d4d2d7841882ac /include/llvm/CodeGen | |
parent | 41f6cbbeb21d7d4376b8c0302b9766c3e43be5f2 (diff) | |
download | external_llvm-ace44dbbabe9ee0498834957632df2af0dbf9c59.zip external_llvm-ace44dbbabe9ee0498834957632df2af0dbf9c59.tar.gz external_llvm-ace44dbbabe9ee0498834957632df2af0dbf9c59.tar.bz2 |
Make sure both member variables are initialized in the default constructor
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
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index b89d980..1b7e8e6 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -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 { |