[Mlir-commits] [mlir] [MLIR][EmitC] Bugfix in emitc.call_opaque operand emission (PR #153980)
Simon Camphausen
llvmlistbot at llvm.org
Sun Aug 24 08:23:59 PDT 2025
================
@@ -749,10 +749,8 @@ static LogicalResult printOperation(CppEmitter &emitter,
if (t.getType().isIndex()) {
int64_t idx = t.getInt();
Value operand = op.getOperand(idx);
- if (!emitter.hasValueInScope(operand))
- return op.emitOpError("operand ")
- << idx << "'s value not defined in scope";
- os << emitter.getOrCreateName(operand);
+ if (failed(emitter.emitOperand(operand)))
----------------
simon-camp wrote:
You can return emitter.emitOperand directly.
https://github.com/llvm/llvm-project/pull/153980
More information about the Mlir-commits
mailing list