diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 09aefb127635..5bd029644be4 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -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 {