Skip to content

Commit 4c09e45

Browse files
committed
[MLIR] Apply clang-tidy fixes for llvm-qualified-auto in OpenMPToLLVMIRTranslation.cpp (NFC)
1 parent 45b697e commit 4c09e45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ class LinearClauseProcessor {
194194
builder.CreateLoad(linearOrigVars[index]->getAllocatedType(),
195195

196196
linearPreconditionVars[index]);
197-
auto mulInst = builder.CreateMul(loopInductionVar, linearSteps[index]);
198-
auto addInst = builder.CreateAdd(linearVarStart, mulInst);
197+
auto *mulInst = builder.CreateMul(loopInductionVar, linearSteps[index]);
198+
auto *addInst = builder.CreateAdd(linearVarStart, mulInst);
199199
builder.CreateStore(addInst, linearLoopBodyTemps[index]);
200200
}
201201
}
@@ -1968,7 +1968,7 @@ static bool teamsReductionContainedInDistribute(omp::TeamsOp teamsOp) {
19681968
// If we are going to use distribute reduction then remove any debug uses of
19691969
// the reduction parameters in teamsOp. Otherwise they will be left without
19701970
// any mapped value in moduleTranslation and will eventually error out.
1971-
for (auto use : debugUses)
1971+
for (auto *use : debugUses)
19721972
use->erase();
19731973
return true;
19741974
}

0 commit comments

Comments
 (0)