[llvm-commits] [llvm] r86000 - /llvm/trunk/include/llvm/Metadata.h

Evan Cheng evan.cheng at apple.com
Tue Nov 3 19:08:58 PST 2009


Author: evancheng
Date: Tue Nov  3 21:08:57 2009
New Revision: 86000

URL: http://llvm.org/viewvc/llvm-project?rev=86000&view=rev
Log:
Silence implicit conversion warnings.

Modified:
    llvm/trunk/include/llvm/Metadata.h

Modified: llvm/trunk/include/llvm/Metadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Metadata.h?rev=86000&r1=85999&r2=86000&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Metadata.h (original)
+++ llvm/trunk/include/llvm/Metadata.h Tue Nov  3 21:08:57 2009
@@ -63,7 +63,7 @@
   
   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 @@
 
   /// getNumElements - Return number of NamedMDNode elements.
   unsigned getNumElements() const {
-    return Node.size();
+    return (unsigned)Node.size();
   }
 
   /// addElement - Add metadata element.





More information about the llvm-commits mailing list