mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
[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
Block a user