summaryrefslogtreecommitdiff
path: root/mlir/lib/IR/Block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/IR/Block.cpp')
-rw-r--r--mlir/lib/IR/Block.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/mlir/lib/IR/Block.cpp b/mlir/lib/IR/Block.cpp
index feb21493d0d3..18a79d25ff5b 100644
--- a/mlir/lib/IR/Block.cpp
+++ b/mlir/lib/IR/Block.cpp
@@ -319,11 +319,11 @@ unsigned PredecessorIterator::getSuccessorIndex() const {
SuccessorRange::SuccessorRange() : SuccessorRange(nullptr, 0) {}
SuccessorRange::SuccessorRange(Block *block) : SuccessorRange() {
- if (block->empty() || llvm::hasSingleElement(*block->getParent()))
- return;
- Operation *term = &block->back();
- if ((count = term->getNumSuccessors()))
- base = term->getBlockOperands().data();
+ if (block->empty() || llvm::hasSingleElement(*block->getParent()))
+ return;
+ Operation *term = &block->back();
+ if ((count = term->getNumSuccessors()))
+ base = term->getBlockOperands().data();
}
SuccessorRange::SuccessorRange(Operation *term) : SuccessorRange() {