Fix a minor bug in expiredAt.  endNumber() is the first number that is not valid.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17931 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/LiveInterval.h b/lib/CodeGen/LiveInterval.h
index 87cb570..2784ba7 100644
--- a/lib/CodeGen/LiveInterval.h
+++ b/lib/CodeGen/LiveInterval.h
@@ -110,7 +110,7 @@
     }
 
     bool expiredAt(unsigned index) const {
-      return endNumber() <= (index + 1);
+      return index >= endNumber();
     }
 
     bool liveAt(unsigned index) const;