1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

AssignNodeIds should return unsigned.

llvm-svn: 29343
This commit is contained in:
Evan Cheng 2006-07-27 07:36:47 +00:00
parent b6577bc3cd
commit bdb2562804
2 changed files with 3 additions and 3 deletions

View 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;

View 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++);