From: Evan Cheng Date: Thu, 27 Jul 2006 07:36:47 +0000 (+0000) Subject: AssignNodeIds should return unsigned. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7c16d776cb827922dd0f8f0a88c5b65a90810c0b;p=oota-llvm.git AssignNodeIds should return unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29343 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 53caf885489..4de4161103a 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -424,7 +424,7 @@ public: /// AssignNodeIds - Assign a unique node id for each node in the DAG. It /// returns the maximum id. - int AssignNodeIds(); + unsigned AssignNodeIds(); void dump() const; diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 77904bf8287..1a5a09b1dc9 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2700,8 +2700,8 @@ void SelectionDAG::ReplaceAllUsesOfValueWith(SDOperand From, SDOperand To, /// AssignNodeIds - Assign a unique node id for each node in the DAG. It returns /// the maximum id. -int SelectionDAG::AssignNodeIds() { - int Id = 0; +unsigned SelectionDAG::AssignNodeIds() { + unsigned Id = 0; for (allnodes_iterator I = allnodes_begin(), E = allnodes_end(); I != E; ++I){ SDNode *N = I; N->setNodeId(Id++);