[Mlir-commits] [mlir] d346157 - Apply clang-tidy fixes for llvm-qualified-auto in TestBackwardDataFlowAnalysis.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Jan 3 10:49:50 PST 2023
Author: Mehdi Amini
Date: 2023-01-03T18:49:33Z
New Revision: d34615731bd66697cda81cd090e3c5484e51aa1e
URL: https://github.com/llvm/llvm-project/commit/d34615731bd66697cda81cd090e3c5484e51aa1e
DIFF: https://github.com/llvm/llvm-project/commit/d34615731bd66697cda81cd090e3c5484e51aa1e.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in TestBackwardDataFlowAnalysis.cpp (NFC)
Added:
Modified:
mlir/test/lib/Analysis/DataFlow/TestBackwardDataFlowAnalysis.cpp
Removed:
################################################################################
diff --git a/mlir/test/lib/Analysis/DataFlow/TestBackwardDataFlowAnalysis.cpp b/mlir/test/lib/Analysis/DataFlow/TestBackwardDataFlowAnalysis.cpp
index d819ee2647a61..c326fd2cc1931 100644
--- a/mlir/test/lib/Analysis/DataFlow/TestBackwardDataFlowAnalysis.cpp
+++ b/mlir/test/lib/Analysis/DataFlow/TestBackwardDataFlowAnalysis.cpp
@@ -38,7 +38,7 @@ struct WrittenTo : public AbstractSparseLattice {
: ChangeResult::Change;
}
ChangeResult meet(const AbstractSparseLattice &other) override {
- auto rhs = reinterpret_cast<const WrittenTo *>(&other);
+ const auto *rhs = reinterpret_cast<const WrittenTo *>(&other);
return addWrites(rhs->writes);
}
More information about the Mlir-commits
mailing list