diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 009bd6ae1ad..45d28327f98 100644 --- a/include/llvm/Support/CallSite.h +++ b/include/llvm/Support/CallSite.h @@ -100,7 +100,7 @@ public: return I->op_begin()+3; // Skip Function, BB, BB } arg_iterator arg_end() const { return I->op_end(); } - unsigned arg_size() const { return arg_end() - arg_begin(); } + unsigned arg_size() const { return unsigned(arg_end() - arg_begin()); } bool operator<(const CallSite &CS) const { return getInstruction() < CS.getInstruction();