[Mlir-commits] [mlir] [mlir][Python] fix liveContextMap under free-threading after #178529 (PR #179163)
Maksim Levental
llvmlistbot at llvm.org
Sun Feb 1 20:59:34 PST 2026
https://github.com/makslevental updated https://github.com/llvm/llvm-project/pull/179163
>From c01828ca887a4369ba2a0be8b9a1c0fc742a2a28 Mon Sep 17 00:00:00 2001
From: makslevental <maksim.levental at gmail.com>
Date: Sun, 1 Feb 2026 20:53:41 -0800
Subject: [PATCH] [mlir][Python] fix liveContextMap under free-threading after
178529
---
mlir/lib/Bindings/Python/IRCore.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/lib/Bindings/Python/IRCore.cpp b/mlir/lib/Bindings/Python/IRCore.cpp
index dda4a027f0a30..7f34343eba6c9 100644
--- a/mlir/lib/Bindings/Python/IRCore.cpp
+++ b/mlir/lib/Bindings/Python/IRCore.cpp
@@ -1671,7 +1671,7 @@ nb::object PyOpView::buildGeneric(
int segmentSpec = operandSegmentSpec[i];
if (segmentSpec == 1 || segmentSpec == 0) {
// Unpack unary element.
- const auto operand = operandList[i];
+ const nanobind::handle operand = operandList[i];
if (!operand.is_none()) {
try {
operands.push_back(getOpResultOrValue(operand));
More information about the Mlir-commits
mailing list