[NFC] Minor NFC changes

Helping make code clean.
pull/2381/head
Abdul Raheem Beigh 2023-08-07 12:52:03 +01:00
parent 8d4f4cb104
commit b457b051db
1 changed files with 3 additions and 1 deletions

View File

@ -44,10 +44,12 @@ dtypeFunctionArgsBuilder(OpBuilder &b, Location loc,
SmallVector<Value> dtypeFuncArgs;
ArrayRef<Type> desiredTypes = dtypeFunc.getArgumentTypes();
for (auto operand : originalOperands) {
for (Value operand : originalOperands) {
assert(!desiredTypes.empty() &&
"`dtypeFunc` should have at least one argument for each argument in "
"`originalOperands`");
// Getting hold of desired types and accordingly adjusting function
// arguments
Type desiredType = desiredTypes.front();
FailureOr<Value> otherArg;
if (failed(otherArg = adjustFunctionArg(b, loc, operand, desiredType,