Fix VC++ compilation error.
authorJeff Cohen <jeffc@jolt-lang.org>
Fri, 5 May 2006 01:47:05 +0000 (01:47 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Fri, 5 May 2006 01:47:05 +0000 (01:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28117 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp

index cdd58074b2a4a04ac4f04234371fdec4dafb908c..b6c16a88cfe17d59fede042f7165ead9c71ca204 100644 (file)
@@ -541,7 +541,7 @@ static bool isFloater(const SUnit *SU) {
 
 static bool isSimpleFloaterUse(const SUnit *SU) {
   unsigned NumOps = 0;
-  for (std::set<std::pair<SUnit*, bool> >::iterator I = SU->Preds.begin(),
+  for (std::set<std::pair<SUnit*, bool> >::const_iterator I = SU->Preds.begin(),
          E = SU->Preds.end(); I != E; ++I) {
     if (I->second) continue;
     if (++NumOps > 1)