[Mlir-commits] [mlir] 7b1ee71 - [MLIR] Fix python tests for LocationAttr
Andrew Young
llvmlistbot at llvm.org
Wed Jan 25 17:03:31 PST 2023
Author: Andrew Young
Date: 2023-01-25T17:02:43-08:00
New Revision: 7b1ee71da566b07671be946125ee22e12f306025
URL: https://github.com/llvm/llvm-project/commit/7b1ee71da566b07671be946125ee22e12f306025
DIFF: https://github.com/llvm/llvm-project/commit/7b1ee71da566b07671be946125ee22e12f306025.diff
LOG: [MLIR] Fix python tests for LocationAttr
Follow up to https://reviews.llvm.org/D142522. I forgot to push the
test changes, was caught only in the post-merge builds.
Added:
Modified:
mlir/test/python/ir/location.py
Removed:
################################################################################
diff --git a/mlir/test/python/ir/location.py b/mlir/test/python/ir/location.py
index c1c96d0297c17..6a30a1d25b318 100644
--- a/mlir/test/python/ir/location.py
+++ b/mlir/test/python/ir/location.py
@@ -29,7 +29,7 @@ def testUnknown():
def testLocationAttr():
with Context() as ctxt:
loc = Location.unknown()
- attr = loc.get_attr()
+ attr = loc.attr
clone = Location.from_attr(attr)
gc.collect()
# CHECK: loc: loc(unknown)
More information about the Mlir-commits
mailing list