From 9111c4fef5a963f6d091e0a2401346fc98b521da Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 4 Nov 2009 03:08:57 +0000 Subject: [PATCH] Silence implicit conversion warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86000 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Metadata.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index c9830156ec1..ed87d427e65 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -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.