Skip to content

Commit 8dbfe83

Browse files
authored
[CIR] Fix mlir::ValueRange init from ArrayRef warning (#146577)
Fix initalizing ValueRange with ArrayRef `ValueRange(ArrayRef<Value>(std::forward<Arg>(arg))) {}` warning
1 parent 491c79f commit 8dbfe83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def ReturnOp : CIR_Op<"return", [ParentOneOf<["FuncOp", "ScopeOp", "IfOp",
489489

490490
// Allow building a ReturnOp with no return operand.
491491
let builders = [
492-
OpBuilder<(ins), [{ build($_builder, $_state, std::nullopt); }]>
492+
OpBuilder<(ins), [{ build($_builder, $_state, {}); }]>
493493
];
494494

495495
// Provide extra utility definitions on the c++ operation class definition.

0 commit comments

Comments
 (0)