Use OpState::operator->() to get to member functions in Operation so we can remove the corresponding methods from OpState.

PiperOrigin-RevId: 346721668
This commit is contained in:
Christian Sigg 2020-12-09 23:53:05 -08:00 committed by TensorFlow MLIR Team
parent c36afd275e
commit 51f535454d
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ struct HloToLhloReturnOpConverter : public BaseOpConversion<mhlo::ReturnOp> {
mhlo::ReturnOp op, ArrayRef<Value> operands,
ConversionPatternRewriter& rewriter) const final {
auto loc = op.getLoc();
auto& entry_block = op.getParentRegion()->front();
auto& entry_block = op->getParentRegion()->front();
auto num_arguments = entry_block.getNumArguments();
if (operands.size() > num_arguments) {
return op.emitError(