From: Chris Lattner Date: Tue, 8 Nov 2005 21:54:57 +0000 (+0000) Subject: Explicitly initialize some instance vars X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4012eb2137c91668d4951a312fc6067b4a5da4cd;p=oota-llvm.git Explicitly initialize some instance vars git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24247 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 9a5e18982d4..9abaeefcea6 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -402,7 +402,8 @@ private: 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 @@ bool SimpleSched::isPassiveNode(SDNode *Node) { /// 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();