[Mlir-commits] [mlir] 3c7c696 - [mlir] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Thu Dec 22 11:40:25 PST 2022
Author: Kazu Hirata
Date: 2022-12-22T11:40:19-08:00
New Revision: 3c7c696a521c8df5a27b26af0aee8a63d5475e6b
URL: https://github.com/llvm/llvm-project/commit/3c7c696a521c8df5a27b26af0aee8a63d5475e6b
DIFF: https://github.com/llvm/llvm-project/commit/3c7c696a521c8df5a27b26af0aee8a63d5475e6b.diff
LOG: [mlir] Fix a warning
This patch fixes:
mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp:321:19: warning:
unused variable ‘block’ [-Wunused-variable]
Added:
Modified:
mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp b/mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
index ef44f50adf5e8..04d47387403d8 100644
--- a/mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
+++ b/mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
@@ -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
More information about the Mlir-commits
mailing list