Skip to content

Commit

Permalink
Fix Coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
nbpatel authored and silee2 committed Nov 16, 2023
1 parent 7f4b903 commit 58c5124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Conversion/XeTileToXeGPU/SCFOpConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bool isLegalSCFOp(mlir::Operation *op) {
bool result = true;
if (llvm::isa<mlir::scf::ForOp>(op)) {
auto forOp = llvm::cast<mlir::scf::ForOp>(op);
for (auto arg : forOp.getInitArgs()) {
for (const auto &arg : forOp.getInitArgs()) {
auto type = arg.getType();
result &= !type.isa<imex::xetile::TileType>();

Expand Down

0 comments on commit 58c5124

Please sign in to comment.