Silence VC++ redeclaration warnings.
authorJeff Cohen <jeffc@jolt-lang.org>
Thu, 29 Sep 2005 01:59:49 +0000 (01:59 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Thu, 29 Sep 2005 01:59:49 +0000 (01:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23516 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

index c4e72072103a8e0b6371d4fac0577cd141c506ff..be383a3fe3a9606db30fafcefd31686383ae68a9 100644 (file)
@@ -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];