Skip to content

Commit 5f5ce43

Browse files
chsiggcopybara-github
authored andcommitted
Fixes for b74192b7ae0781200be7df40e673d4f918b32587.
To be integrated into branch... PiperOrigin-RevId: 492770717
1 parent 32e5715 commit 5f5ce43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sair_ops.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -818,9 +818,9 @@ void SairProjLastOp::print(OpAsmPrinter &printer) {
818818
// Prints the sair.return operation.
819819
void SairReturnOp::print(OpAsmPrinter &printer) {
820820
printer << " ";
821-
printer.printOperands(operands());
821+
printer.printOperands(getOperands());
822822
printer.printOptionalAttrDict(getOperation()->getAttrs());
823-
if (operands().empty()) return;
823+
if (getOperands().empty()) return;
824824
printer << " : ";
825825
llvm::interleaveComma(getOperands().getTypes(), printer,
826826
[&](mlir::Type type) { printer.printType(type); });
@@ -1310,7 +1310,7 @@ static mlir::LogicalResult VerifyBodyTerminator(Operation *op) {
13101310

13111311
llvm::SmallVector<mlir::Type, 4> result_types;
13121312
ExtractElementTypes(op->getResults(), result_types);
1313-
mlir::TypeRange return_operand_types = return_op.operands().getTypes();
1313+
mlir::TypeRange return_operand_types = return_op.getOperands().getTypes();
13141314
if (!std::equal(result_types.begin(), result_types.end(),
13151315
return_operand_types.begin(), return_operand_types.end())) {
13161316
return op->emitOpError(

sair_ops.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def SairReturnOp : Op<SairDialect, "return", [Terminator]> {
431431
OpBuilder<(ins),
432432
[{ return build($_builder, $_state, ValueRange()); }]>];
433433

434-
let arguments = (ins Variadic<AnyType>:$operands);
434+
let arguments = (ins Variadic<AnyType>);
435435
let hasCustomAssemblyFormat = 1;
436436
}
437437

0 commit comments

Comments
 (0)