Cast because I think I know what I'm doing. There are warnings about converting
authorBill Wendling <isanbard@gmail.com>
Thu, 5 Jun 2008 07:35:27 +0000 (07:35 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 5 Jun 2008 07:35:27 +0000 (07:35 +0000)
from 64-bit to 32-bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51982 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index 09aefb12763571da68a593e86939ba8388158930..5bd029644be43f6139cbfc861905d3d91b30bdce 100644 (file)
@@ -1602,7 +1602,7 @@ public:
   }
 
   unsigned getNumIndices() const {  // Note: always non-negative
-    return Indices.size();
+    return (unsigned)Indices.size();
   }
 
   bool hasIndices() const {
@@ -1781,7 +1781,7 @@ public:
   }
 
   unsigned getNumIndices() const {  // Note: always non-negative
-    return Indices.size();
+    return (unsigned)Indices.size();
   }
 
   bool hasIndices() const {