[llvm-commits] [llvm] r56359 - /llvm/trunk/include/llvm/Constants.h

Bill Wendling isanbard at gmail.com
Fri Sep 19 11:34:50 PDT 2008


Author: void
Date: Fri Sep 19 13:34:40 2008
New Revision: 56359

URL: http://llvm.org/viewvc/llvm-project?rev=56359&view=rev
Log:
Prevent warning about conversion from 64-bit to 32-bit by (yuck) casting...

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

Modified: llvm/trunk/include/llvm/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Constants.h?rev=56359&r1=56358&r2=56359&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Constants.h (original)
+++ llvm/trunk/include/llvm/Constants.h Fri Sep 19 13:34:40 2008
@@ -753,7 +753,7 @@
   /// 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;
   





More information about the llvm-commits mailing list