diff --git a/mlir/include/mlir/IR/Operation.h b/mlir/include/mlir/IR/Operation.h --- a/mlir/include/mlir/IR/Operation.h +++ b/mlir/include/mlir/IR/Operation.h @@ -264,7 +264,9 @@ : MutableArrayRef(); } - OpOperand &getOpOperand(unsigned idx) { return getOpOperands()[idx]; } + OpOperand &getOpOperand(unsigned idx) { + return getOperandStorage().getOperands()[idx]; + } // Support operand type iteration. using operand_type_iterator = operand_range::type_iterator;