File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mlir/lib/Target/LLVMIR/Dialect/OpenMP Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments