diff --git a/lib/Conversion/XeTileToXeGPU/SCFOpConversion.cpp b/lib/Conversion/XeTileToXeGPU/SCFOpConversion.cpp index 24350b6b5..18203730a 100644 --- a/lib/Conversion/XeTileToXeGPU/SCFOpConversion.cpp +++ b/lib/Conversion/XeTileToXeGPU/SCFOpConversion.cpp @@ -89,7 +89,7 @@ bool isLegalSCFOp(mlir::Operation *op) { bool result = true; if (llvm::isa(op)) { auto forOp = llvm::cast(op); - for (auto arg : forOp.getInitArgs()) { + for (const auto &arg : forOp.getInitArgs()) { auto type = arg.getType(); result &= !type.isa();