[Mlir-commits] [mlir] 4345b20 - Apply clang-tidy fixes for llvm-qualified-auto in TestConstantFold.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Feb 19 16:41:53 PST 2024
Author: Mehdi Amini
Date: 2024-02-19T16:41:28-08:00
New Revision: 4345b20508b5702c69dd1649c251c4615014dbd2
URL: https://github.com/llvm/llvm-project/commit/4345b20508b5702c69dd1649c251c4615014dbd2
DIFF: https://github.com/llvm/llvm-project/commit/4345b20508b5702c69dd1649c251c4615014dbd2.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in TestConstantFold.cpp (NFC)
Added:
Modified:
mlir/test/lib/Transforms/TestConstantFold.cpp
Removed:
################################################################################
diff --git a/mlir/test/lib/Transforms/TestConstantFold.cpp b/mlir/test/lib/Transforms/TestConstantFold.cpp
index 81f634d8d3ef78..b145ee1fef82c6 100644
--- a/mlir/test/lib/Transforms/TestConstantFold.cpp
+++ b/mlir/test/lib/Transforms/TestConstantFold.cpp
@@ -32,7 +32,7 @@ struct TestConstantFold : public PassWrapper<TestConstantFold, OperationPass<>>,
existingConstants.push_back(op);
}
void notifyOperationRemoved(Operation *op) override {
- auto it = llvm::find(existingConstants, op);
+ auto *it = llvm::find(existingConstants, op);
if (it != existingConstants.end())
existingConstants.erase(it);
}
More information about the Mlir-commits
mailing list