forked from OSchip/llvm-project
[mlir] fix compiler error due to commit landing race
This commit is contained in:
parent
e3890b7fd6
commit
069ca6f7a3
|
@ -123,8 +123,8 @@ LogicalResult PatternApplicatorExtension::findAllMatches(
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
OperandRange
|
||||
transform::AlternativesOp::getSuccessorEntryOperands(unsigned index) {
|
||||
if (getOperation()->getNumOperands() == 1)
|
||||
transform::AlternativesOp::getSuccessorEntryOperands(Optional<unsigned> index) {
|
||||
if (index.hasValue() && getOperation()->getNumOperands() == 1)
|
||||
return getOperation()->getOperands();
|
||||
return OperandRange(getOperation()->operand_end(),
|
||||
getOperation()->operand_end());
|
||||
|
|
Loading…
Reference in New Issue