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 | b01a41a06d71d72f69e7ecd88c6901cc66a10c6b (patch) | |
| tree | 233763993183665219cf4ac7f1507b306a81c626 /llvm/lib | |
| parent | 08c319fbdddcb1e4d43f78fd5b283fa820a24d81 (diff) | |
| download | bcm5719-llvm-b01a41a06d71d72f69e7ecd88c6901cc66a10c6b.tar.gz bcm5719-llvm-b01a41a06d71d72f69e7ecd88c6901cc66a10c6b.zip | |
Silence VC++ redeclaration warnings.
llvm-svn: 23516
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index c4e72072103..be383a3fe3a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/llvm/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]; |

