[CIR] Fix mlir::ValueRange init from ArrayRef warning (#146577)

Fix initalizing ValueRange with ArrayRef
`ValueRange(ArrayRef<Value>(std::forward<Arg>(arg))) {}` warning
This commit is contained in:
Amr Hesham
2025-07-01 20:32:04 +02:00
committed by GitHub
parent 491c79f763
commit 8dbfe83681

View File

@@ -489,7 +489,7 @@ def ReturnOp : CIR_Op<"return", [ParentOneOf<["FuncOp", "ScopeOp", "IfOp",
// Allow building a ReturnOp with no return operand.
let builders = [
OpBuilder<(ins), [{ build($_builder, $_state, std::nullopt); }]>
OpBuilder<(ins), [{ build($_builder, $_state, {}); }]>
];
// Provide extra utility definitions on the c++ operation class definition.