summaryrefslogtreecommitdiffstats
path: root/mlir/bindings/python/pybind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/bindings/python/pybind.cpp')
-rw-r--r--mlir/bindings/python/pybind.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/bindings/python/pybind.cpp b/mlir/bindings/python/pybind.cpp
index 10445edaf12..caff9af59ac 100644
--- a/mlir/bindings/python/pybind.cpp
+++ b/mlir/bindings/python/pybind.cpp
@@ -87,7 +87,8 @@ struct PythonValueHandle {
operator ValueHandle &() { return value; }
std::string str() const {
- return std::to_string(reinterpret_cast<intptr_t>(value.getValue()));
+ return std::to_string(
+ reinterpret_cast<intptr_t>(value.getValue().getAsOpaquePointer()));
}
PythonValueHandle call(const std::vector<PythonValueHandle> &args) {
OpenPOWER on IntegriCloud