[mlir][py] Fix negative cached value in attribute builder
authorJacques Pienaar <jpienaar@google.com>
Wed, 28 Dec 2022 05:56:58 +0000 (21:56 -0800)
committerJacques Pienaar <jpienaar@google.com>
Wed, 28 Dec 2022 05:56:58 +0000 (21:56 -0800)
commitd2b96647595da2c1f0fea5e0555466d3db93815c
treeaa6ad8e1ea90c617bbada55ca61524c480a7a377
parent5922d361229430a373e007a8e82ad69c7186d56d
[mlir][py] Fix negative cached value in attribute builder

Previously this was incorrectly assigning py::none to where function was
expected which resulted in failure if one used a non-attribute for
attribute without registered builder.
mlir/lib/Bindings/Python/Globals.h
mlir/lib/Bindings/Python/IRModule.cpp