From: Eric Christopher Date: Wed, 9 Dec 2009 08:29:32 +0000 (+0000) Subject: Silence conversion warning from 64 to 32-bit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1e8c6934f2d71c06816063b41f398a402e4b826e;p=oota-llvm.git Silence conversion warning from 64 to 32-bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90962 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 22038550952..2e63188989a 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -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;