Skip to content

Commit a786522

Browse files
committed
[mlir][NFC] Fix codestyle issues introduced in D121988
These were noticed in the post commit review of https://reviews.llvm.org/D121988
1 parent d26c42a commit a786522

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mlir/lib/Transforms/Utils/RegionUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ LogicalResult BlockMergeCluster::addToCluster(BlockEquivalenceData &blockData) {
533533

534534
if (!isValidSuccessorArg(leaderBlock, lhsOperand) ||
535535
!isValidSuccessorArg(mergeBlock, rhsOperand))
536-
return mlir::failure();
536+
return failure();
537537

538538
mismatchedOperands.emplace_back(opI, operand);
539539
continue;

mlir/test/lib/Dialect/Test/TestDialect.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,8 @@ TestBranchOp::getMutableSuccessorOperands(unsigned index) {
348348
Optional<MutableOperandRange>
349349
TestProducingBranchOp::getMutableSuccessorOperands(unsigned index) {
350350
assert(index <= 1 && "invalid successor index");
351-
if (index == 1) {
351+
if (index == 1)
352352
return getFirstOperandsMutable();
353-
}
354353
return getSecondOperandsMutable();
355354
}
356355

0 commit comments

Comments
 (0)