[mlir] Use the correct base class for Attributes in Python bindings
authorAlex Zinenko <zinenko@google.com>
Tue, 20 Oct 2020 09:22:02 +0000 (11:22 +0200)
committerAlex Zinenko <zinenko@google.com>
Wed, 21 Oct 2020 07:49:23 +0000 (09:49 +0200)
commit31782cd2199b808cda6733d6448e1314e2c8ec96
treee512b7e59105172a7950275452f7a958292b3929
parent580915d6a2970022d5b7e05d4587de0fd7126c31
[mlir] Use the correct base class for Attributes in Python bindings

The pybind class typedef for concrete attribute classes was erroneously
deriving all of them from PyAttribute instead of the provided base class. This
has not been triggering any error because only one level of the hierarchy is
currently exposed.

Differential Revision: https://reviews.llvm.org/D89779
mlir/lib/Bindings/Python/IRModules.cpp