Skip to content

Commit

Permalink
Fix coverity low impact issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nbpatel authored and silee2 committed Nov 14, 2023
1 parent f05029e commit ffcce66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Conversion/XeTileToXeGPU/SCFOpConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct SgSCFForOpBlockPattern
llvm::SmallVector<mlir::Value> convertedArgs;
// OpAdaptor is defined with ValueRange, so it contains results after
// One-to-N mapping
for (auto values : adaptor.getInitArgs())
for (auto &values : adaptor.getInitArgs())
convertedArgs.append(values.begin(), values.end());

auto argumentTys = op.getRegion().getArgumentTypes();
Expand Down Expand Up @@ -74,7 +74,7 @@ struct SgSCFYieldOpPattern
matchAndRewrite(mlir::scf::YieldOp op, OpAdaptor adaptor,
imex::XeGPUOneToNPatterRewriter &rewriter) const override {
llvm::SmallVector<mlir::Value> convertedResults;
for (auto values : adaptor.getResults())
for (auto &values : adaptor.getResults())
convertedResults.append(values.begin(), values.end());

auto newOp =
Expand Down

0 comments on commit ffcce66

Please sign in to comment.