diff --git a/mlir/include/mlir/IR/Value.h b/mlir/include/mlir/IR/Value.h --- a/mlir/include/mlir/IR/Value.h +++ b/mlir/include/mlir/IR/Value.h @@ -534,11 +534,11 @@ : public DenseMapInfo { static mlir::detail::TypedValue getEmptyKey() { void *pointer = llvm::DenseMapInfo::getEmptyKey(); - return mlir::Value::getFromOpaquePointer(pointer); + return reinterpret_cast(pointer); } static mlir::detail::TypedValue getTombstoneKey() { void *pointer = llvm::DenseMapInfo::getTombstoneKey(); - return mlir::Value::getFromOpaquePointer(pointer); + return reinterpret_cast(pointer); } }; @@ -578,7 +578,7 @@ : public PointerLikeTypeTraits { public: static inline mlir::detail::TypedValue getFromVoidPointer(void *pointer) { - return mlir::Value::getFromOpaquePointer(pointer); + return reinterpret_cast(pointer); } };