summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR/Region.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/IR/Region.cpp')
-rw-r--r--mlir/lib/IR/Region.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/IR/Region.cpp b/mlir/lib/IR/Region.cpp
index 1e8abc884dd..d8d130ba369 100644
--- a/mlir/lib/IR/Region.cpp
+++ b/mlir/lib/IR/Region.cpp
@@ -84,7 +84,7 @@ void Region::cloneInto(Region *dest, Region::iterator destPos,
// argument to the cloned block.
for (auto arg : block.getArguments())
if (!mapper.contains(arg))
- mapper.map(arg, newBlock->addArgument(arg->getType()));
+ mapper.map(arg, newBlock->addArgument(arg.getType()));
// Clone and remap the operations within this block.
for (auto &op : block)
@@ -146,7 +146,7 @@ static bool isIsolatedAbove(Region &region, Region &limit,
// Check that any value that is used by an operation is defined in the
// same region as either an operation result or a block argument.
- if (operand->getParentRegion()->isProperAncestor(&limit)) {
+ if (operand.getParentRegion()->isProperAncestor(&limit)) {
if (noteLoc) {
op.emitOpError("using value defined outside the region")
.attachNote(noteLoc)
OpenPOWER on IntegriCloud