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:
parent
c36afd275e
commit
51f535454d
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue