diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-07-27 07:36:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-07-27 07:36:47 +0000 |
commit | acb606ff3349e703a14772208b94efa2f65eba6d (patch) | |
tree | 031469a02c079de037627fe52daa72abc4646fb9 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 734b74fefe6b668c9da8ad5958631fa401c24f15 (diff) | |
download | bcm5719-llvm-acb606ff3349e703a14772208b94efa2f65eba6d.tar.gz bcm5719-llvm-acb606ff3349e703a14772208b94efa2f65eba6d.zip |
AssignNodeIds should return unsigned.
llvm-svn: 29343
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 77904bf8287..1a5a09b1dc9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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++); |