mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
AssignNodeIds should return unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -424,7 +424,7 @@ public:
|
|||||||
|
|
||||||
/// AssignNodeIds - Assign a unique node id for each node in the DAG. It
|
/// AssignNodeIds - Assign a unique node id for each node in the DAG. It
|
||||||
/// returns the maximum id.
|
/// returns the maximum id.
|
||||||
int AssignNodeIds();
|
unsigned AssignNodeIds();
|
||||||
|
|
||||||
void dump() const;
|
void dump() const;
|
||||||
|
|
||||||
|
@@ -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
|
/// AssignNodeIds - Assign a unique node id for each node in the DAG. It returns
|
||||||
/// the maximum id.
|
/// the maximum id.
|
||||||
int SelectionDAG::AssignNodeIds() {
|
unsigned SelectionDAG::AssignNodeIds() {
|
||||||
int Id = 0;
|
unsigned Id = 0;
|
||||||
for (allnodes_iterator I = allnodes_begin(), E = allnodes_end(); I != E; ++I){
|
for (allnodes_iterator I = allnodes_begin(), E = allnodes_end(); I != E; ++I){
|
||||||
SDNode *N = I;
|
SDNode *N = I;
|
||||||
N->setNodeId(Id++);
|
N->setNodeId(Id++);
|
||||||
|
Reference in New Issue
Block a user