Silence conversion warning from 64 to 32-bit.
authorEric Christopher <echristo@apple.com>
Wed, 9 Dec 2009 08:29:32 +0000 (08:29 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 9 Dec 2009 08:29:32 +0000 (08:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90962 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetData.h

index 22038550952c633f4bee3967047705fde0e3c0d8..2e63188989abc53a35f3964351d12593454915f4 100644 (file)
@@ -150,7 +150,7 @@ public:
   /// The width is specified in bits.
   ///
   bool isLegalInteger(unsigned Width) const {
-    for (unsigned i = 0, e = LegalIntWidths.size(); i != e; ++i)
+    for (unsigned i = 0, e = (unsigned)LegalIntWidths.size(); i != e; ++i)
       if (LegalIntWidths[i] == Width)
         return true;
     return false;