@@ -260,7 +260,7 @@ transform::AnnotateOp::apply(transform::TransformRewriter &rewriter,
260
260
}
261
261
attr = params[0 ];
262
262
}
263
- for (auto target : targets)
263
+ for (auto * target : targets)
264
264
target->setAttr (getName (), attr);
265
265
return DiagnosedSilenceableFailure::success ();
266
266
}
@@ -330,7 +330,7 @@ DiagnosedSilenceableFailure transform::ApplyDeadCodeEliminationOp::applyToOne(
330
330
auto eraseOp = [&](Operation *op) {
331
331
// Remove op and nested ops from the worklist.
332
332
op->walk ([&](Operation *op) {
333
- auto it = llvm::find (worklist, op);
333
+ const auto * it = llvm::find (worklist, op);
334
334
if (it != worklist.end ())
335
335
worklist.erase (it);
336
336
});
@@ -666,7 +666,7 @@ void transform::ApplyToLLVMConversionPatternsOp::populatePatterns(
666
666
TypeConverter &typeConverter, RewritePatternSet &patterns) {
667
667
Dialect *dialect = getContext ()->getLoadedDialect (getDialectName ());
668
668
assert (dialect && " expected that dialect is loaded" );
669
- auto iface = cast<ConvertToLLVMPatternInterface>(dialect);
669
+ auto * iface = cast<ConvertToLLVMPatternInterface>(dialect);
670
670
// ConversionTarget is currently ignored because the enclosing
671
671
// apply_conversion_patterns op sets up its own ConversionTarget.
672
672
ConversionTarget target (*getContext ());
@@ -686,7 +686,7 @@ LogicalResult transform::ApplyToLLVMConversionPatternsOp::verify() {
686
686
if (!dialect)
687
687
return emitOpError (" unknown dialect or dialect not loaded: " )
688
688
<< getDialectName ();
689
- auto iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
689
+ auto * iface = dyn_cast<ConvertToLLVMPatternInterface>(dialect);
690
690
if (!iface)
691
691
return emitOpError (
692
692
" dialect does not implement ConvertToLLVMPatternInterface or "
0 commit comments