Prevent warning about conversion from 64-bit to 32-bit by (yuck) casting...
authorBill Wendling <isanbard@gmail.com>
Fri, 19 Sep 2008 18:34:40 +0000 (18:34 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 19 Sep 2008 18:34:40 +0000 (18:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56359 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index efae25525d26b5e57f6053bc3e71a9e490d148d9..926f131ef5eb193428a2eac6e183a118fb8dc3ca 100644 (file)
@@ -753,7 +753,7 @@ public:
   /// operands replaced with the specified values.  The specified operands must
   /// match count and type with the existing ones.
   Constant *getWithOperands(const std::vector<Constant*> &Ops) const {
-    return getWithOperands(&Ops[0], Ops.size());
+    return getWithOperands(&Ops[0], (unsigned)Ops.size());
   }
   Constant *getWithOperands(Constant* const *Ops, unsigned NumOps) const;