From 58c5124ebb9cb2cc877b006cf5c3287c9b8a2ba7 Mon Sep 17 00:00:00 2001 From: Nishant Patel Date: Thu, 16 Nov 2023 09:06:00 -0800 Subject: [PATCH] Fix Coverity --- lib/Conversion/XeTileToXeGPU/SCFOpConversion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();