optimize strstr, PR5783
[oota-llvm.git] / lib / CodeGen / ScheduleDAG.cpp
index 5a59862090b14f4786e2f4ae2877c1874cf8f2fb..71693d21c68899c980e6b627ce1e3f76b4d08e01 100644 (file)
@@ -346,7 +346,7 @@ void ScheduleDAG::VerifySchedule(bool isBottomUp) {
       AnyNotSched = true;
     }
     if (SUnits[i].isScheduled &&
-        (isBottomUp ? SUnits[i].getHeight() : SUnits[i].getHeight()) >
+        (isBottomUp ? SUnits[i].getHeight() : SUnits[i].getDepth()) >
           unsigned(INT_MAX)) {
       if (!AnyNotSched)
         errs() << "*** Scheduling failed! ***\n";