[llvm-commits] [llvm] r90962 - /llvm/trunk/include/llvm/Target/TargetData.h

Eric Christopher echristo at apple.com
Wed Dec 9 00:29:34 PST 2009


Author: echristo
Date: Wed Dec  9 02:29:32 2009
New Revision: 90962

URL: http://llvm.org/viewvc/llvm-project?rev=90962&view=rev
Log:
Silence conversion warning from 64 to 32-bit.

Modified:
    llvm/trunk/include/llvm/Target/TargetData.h

Modified: llvm/trunk/include/llvm/Target/TargetData.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetData.h?rev=90962&r1=90961&r2=90962&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetData.h (original)
+++ llvm/trunk/include/llvm/Target/TargetData.h Wed Dec  9 02:29:32 2009
@@ -150,7 +150,7 @@
   /// 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;





More information about the llvm-commits mailing list