Skip to content

Commit 9e3886f

Browse files
Migrate away from llvm::ArrayRef(std::nullopt_t) (#7668)
The upstream LLVM has deprecated ArrayRef(std::nullopt_t). This CL migrates away from that.
1 parent f3067cd commit 9e3886f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/triton/Dialect/Triton/IR/TritonOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ def ReturnOp : TT_Op<"return", [Pure, HasParent<"FuncOp">, /*MemRefsNormalizable
12751275
let arguments = (ins Variadic<AnyType>:$srcs);
12761276

12771277
let builders = [OpBuilder<(ins), [{
1278-
build($_builder, $_state, std::nullopt);
1278+
build($_builder, $_state, mlir::ValueRange());
12791279
}]>];
12801280

12811281
let assemblyFormat = "attr-dict ($srcs^ `:` type($srcs))?";

lib/Dialect/Triton/IR/Ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ void FuncOp::build(OpBuilder &builder, OperationState &state, StringRef name,
10521052
return;
10531053
assert(type.getNumInputs() == argAttrs.size());
10541054
call_interface_impl::addArgAndResultAttrs(
1055-
builder, state, argAttrs, /*resultAttrs=*/std::nullopt,
1055+
builder, state, argAttrs, /*resultAttrs=*/{},
10561056
getArgAttrsAttrName(state.name), getResAttrsAttrName(state.name));
10571057
}
10581058

0 commit comments

Comments
 (0)