git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254239
91177308-0d34-0410-b5e6-
96231b3b80d8
}
static bool callHasFloatingPointArgument(const CallInst *CI) {
}
static bool callHasFloatingPointArgument(const CallInst *CI) {
- for (const Use &OI : CI->operands())
- if (OI->getType()->isFloatingPointTy())
- return true;
- return false;
+ return std::any_of(CI->op_begin(), CI->op_end(), [](const Use &OI) {
+ return OI->getType()->isFloatingPointTy();
+ });
}
/// \brief Check whether the overloaded unary floating point function
}
/// \brief Check whether the overloaded unary floating point function