[Mlir-commits] [mlir] [mlir][python] Fixup the constantTypes of pdl.TypesOp (PR #75812)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Dec 18 07:32:59 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Jiefeng Wang (jiefwo)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/75812.diff
1 Files Affected:
- (modified) mlir/python/mlir/dialects/pdl.py (-2)
``````````diff
diff --git a/mlir/python/mlir/dialects/pdl.py b/mlir/python/mlir/dialects/pdl.py
index 90d7d706238e64..800be6d91b7530 100644
--- a/mlir/python/mlir/dialects/pdl.py
+++ b/mlir/python/mlir/dialects/pdl.py
@@ -216,7 +216,5 @@ def __init__(
loc=None,
ip=None,
):
- if constantTypes is None:
- constantTypes = []
result = pdl.RangeType.get(pdl.TypeType.get())
super().__init__(result, constantTypes=constantTypes, loc=loc, ip=ip)
``````````
</details>
https://github.com/llvm/llvm-project/pull/75812
More information about the Mlir-commits
mailing list