[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 8 13:55:08 PST 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

ScheduleDAG.cpp updated: 1.43 -> 1.44
---
Log message:

Explicitly initialize some instance vars


---
Diffs of the changes:  (+5 -4)

 ScheduleDAG.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.43 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.44
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.43	Mon Nov  7 13:08:53 2005
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp	Tue Nov  8 15:54:57 2005
@@ -402,7 +402,8 @@
   
 public:
   // Ctor.
-  NodeGroupOpIterator(NodeInfo *N) : NI(N), GI(N) {}
+  NodeGroupOpIterator(NodeInfo *N)
+    : NI(N), GI(N), OI(SDNode::op_iterator()), OE(SDNode::op_iterator()) {}
   
   /// isEnd - Returns true when not more operands are available.
   ///
@@ -652,9 +653,9 @@
 /// IncludeNode - Add node to NodeInfo vector.
 ///
 void SimpleSched::IncludeNode(NodeInfo *NI) {
-  // Get node
-  SDNode *Node = NI->Node;
-  // Ignore entry node
+// Get node
+SDNode *Node = NI->Node;
+// Ignore entry node
 if (Node->getOpcode() == ISD::EntryToken) return;
   // Check current count for node
   int Count = NI->getPending();






More information about the llvm-commits mailing list