Silence implicit conversion warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2009-11-04 03:08:57 +00:00
parent 11d0088ec2
commit 9111c4fef5

View File

@ -63,7 +63,7 @@ public:
StringRef getString() const { return Str; }
unsigned getLength() const { return Str.size(); }
unsigned getLength() const { return (unsigned)Str.size(); }
typedef StringRef::iterator iterator;
@ -191,7 +191,7 @@ public:
/// getNumElements - Return number of NamedMDNode elements.
unsigned getNumElements() const {
return Node.size();
return (unsigned)Node.size();
}
/// addElement - Add metadata element.