Mark the eh.typeid.for intrinsic as being 'const', which it is inside
[oota-llvm.git] / include / llvm / MC / MCRegisterInfo.h
index 1deb4ef252423109b90f7cfba608328710ed34cb..ada5ae80af0cc37145b139271e9f00ad75c72601 100644 (file)
@@ -76,7 +76,7 @@ public:
   bool contains(unsigned Reg) const {
     unsigned InByte = Reg % 8;
     unsigned Byte = Reg / 8;
-    if (Byte > RegSetSize)
+    if (Byte >= RegSetSize)
       return false;
     return (RegSet[Byte] & (1 << InByte)) != 0;
   }