From 8dbfe83681ed2066b3591be24c4a566b87177d12 Mon Sep 17 00:00:00 2001 From: Amr Hesham Date: Tue, 1 Jul 2025 20:32:04 +0200 Subject: [PATCH] [CIR] Fix mlir::ValueRange init from ArrayRef warning (#146577) Fix initalizing ValueRange with ArrayRef `ValueRange(ArrayRef(std::forward(arg))) {}` warning --- clang/include/clang/CIR/Dialect/IR/CIROps.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/CIR/Dialect/IR/CIROps.td b/clang/include/clang/CIR/Dialect/IR/CIROps.td index 4daff74cbae5..4d3ebfb93615 100644 --- a/clang/include/clang/CIR/Dialect/IR/CIROps.td +++ b/clang/include/clang/CIR/Dialect/IR/CIROps.td @@ -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.