diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-09-29 01:59:49 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-09-29 01:59:49 +0000 |
commit | fef80f43e0f5be66baf74db5e585ef10a101b355 (patch) | |
tree | f8a01150876f54aa76c1fb7b3748a14a5c7e36cc /lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | |
parent | d3d2cf52bbb776941bf8cb03d8732ff3f407cdea (diff) |
Silence VC++ redeclaration warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index c4e7207210..be383a3fe3 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -548,7 +548,8 @@ void SimpleSched::ScheduleBackward() { unsigned Slot = NotFound; // Compare against those previously scheduled operands - for (unsigned j = i + 1; j < N; j++) { + unsigned j = i + 1; + for (; j < N; j++) { // Get following instruction ScheduleInfo *Other = Ordering[j]; @@ -573,7 +574,7 @@ void SimpleSched::ScheduleBackward() { SI->Slot = Slot; // Insert sort based on slot - unsigned j = i + 1; + j = i + 1; for (; j < N; j++) { // Get following instruction ScheduleInfo *Other = Ordering[j]; @@ -602,7 +603,8 @@ void SimpleSched::ScheduleForward() { unsigned Slot = NotFound; // Compare against those previously scheduled operands - for (unsigned j = i; 0 < j--;) { + unsigned j = i; + for (; 0 < j--;) { // Get following instruction ScheduleInfo *Other = Ordering[j]; @@ -627,7 +629,7 @@ void SimpleSched::ScheduleForward() { SI->Slot = Slot; // Insert sort based on slot - unsigned j = i; + j = i; for (; 0 < j--;) { // Get following instruction ScheduleInfo *Other = Ordering[j]; |