aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-07-27 07:36:47 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-07-27 07:36:47 +0000
commit7c16d776cb827922dd0f8f0a88c5b65a90810c0b (patch)
tree88fcdf41e141a566ca24f693f965c63e37b91f5d /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentd30a971bf256d91ed94a5c77826f772da7b1301e (diff)
AssignNodeIds should return unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 77904bf828..1a5a09b1dc 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++);