{ // Scope to destroy ValueMap after cloning.
DenseMap<const Value*, Value*> ValueMap;
{ // Scope to destroy ValueMap after cloning.
DenseMap<const Value*, Value*> ValueMap;
- assert(std::distance(CalledFunc->arg_begin(), CalledFunc->arg_end()) ==
- std::distance(CS.arg_begin(), CS.arg_end()) &&
+ assert(CalledFunc->arg_size() == CS.arg_size() &&
"No varargs calls can be inlined!");
// Calculate the vector of arguments to pass into the function cloner, which
"No varargs calls can be inlined!");
// Calculate the vector of arguments to pass into the function cloner, which