Skip to content

Commit

Permalink
[mlir] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp:321:19: warning:
  unused variable ‘block’ [-Wunused-variable]
  • Loading branch information
kazutakahirata committed Dec 22, 2022
1 parent d06308d commit 3c7c696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
Expand Up @@ -318,7 +318,7 @@ LogicalResult
AbstractSparseBackwardDataFlowAnalysis::visit(ProgramPoint point) {
if (Operation *op = point.dyn_cast<Operation *>())
visitOperation(op);
else if (Block *block = point.dyn_cast<Block *>())
else if (point.dyn_cast<Block *>())
// For backward dataflow, we don't have to do any work for the blocks
// themselves. CFG edges between blocks are processed by the BranchOp
// logic in `visitOperation`, and entry blocks for functions are tied
Expand Down

0 comments on commit 3c7c696

Please sign in to comment.