AssignNodeIds should return unsigned.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 27 Jul 2006 07:36:47 +0000 (07:36 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 27 Jul 2006 07:36:47 +0000 (07:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29343 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 53caf885489d65f60bd0fa025b0182565c1c64ba..4de4161103a12639739ee3d2519410fd16c60a8e 100644 (file)
@@ -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;
 
index 77904bf8287bb85132af65b2a48470c0a84e92b5..1a5a09b1dc9715f72b8174921e062cf7ce3011c8 100644 (file)
@@ -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++);