[Mlir-commits] [mlir] 078ec5d - [mlir][dataflow] Use member initializer list in ProgramPoint class's constructor (NFC) (#173281)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Dec 22 08:54:24 PST 2025
Author: lonely eagle
Date: 2025-12-23T00:54:20+08:00
New Revision: 078ec5d7b8a256338f6443d2d8ad2b7837f82dc7
URL: https://github.com/llvm/llvm-project/commit/078ec5d7b8a256338f6443d2d8ad2b7837f82dc7
DIFF: https://github.com/llvm/llvm-project/commit/078ec5d7b8a256338f6443d2d8ad2b7837f82dc7.diff
LOG: [mlir][dataflow] Use member initializer list in ProgramPoint class's constructor (NFC) (#173281)
Added:
Modified:
mlir/include/mlir/Analysis/DataFlowFramework.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Analysis/DataFlowFramework.h b/mlir/include/mlir/Analysis/DataFlowFramework.h
index e364570c8b531..efce718dde8a7 100644
--- a/mlir/include/mlir/Analysis/DataFlowFramework.h
+++ b/mlir/include/mlir/Analysis/DataFlowFramework.h
@@ -70,11 +70,9 @@ struct ProgramPoint : public StorageUniquer::BaseStorage {
ProgramPoint() {}
/// Create a new program point from the given program point.
- ProgramPoint(const ProgramPoint &point) {
- this->block = point.getBlock();
- this->point = point.getPoint();
- this->op = point.getOperation();
- }
+ ProgramPoint(const ProgramPoint &point)
+ : block(point.getBlock()), point(point.getPoint()),
+ op(point.getOperation()) {}
static ProgramPoint *construct(StorageUniquer::StorageAllocator &alloc,
KeyTy &&key) {
More information about the Mlir-commits
mailing list