[MLIR] Fix python tests for LocationAttr
authorAndrew Young <youngar17@gmail.com>
Thu, 26 Jan 2023 01:01:11 +0000 (17:01 -0800)
committerAndrew Young <youngar17@gmail.com>
Thu, 26 Jan 2023 01:02:43 +0000 (17:02 -0800)
Follow up to https://reviews.llvm.org/D142522.  I forgot to push the
test changes, was caught only in the post-merge builds.

mlir/test/python/ir/location.py

index c1c96d0..6a30a1d 100644 (file)
@@ -29,7 +29,7 @@ run(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)