summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR/Value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/IR/Value.cpp')
-rw-r--r--mlir/lib/IR/Value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/IR/Value.cpp b/mlir/lib/IR/Value.cpp
index 4c2ea5ac69c..660d8ae3248 100644
--- a/mlir/lib/IR/Value.cpp
+++ b/mlir/lib/IR/Value.cpp
@@ -23,7 +23,7 @@ using namespace mlir;
/// If this value is the result of an Operation, return the operation that
/// defines it.
Operation *Value::getDefiningOp() {
- if (auto *result = dyn_cast<OpResult>(this))
+ if (auto *result = dyn_cast<OpResult>())
return result->getOwner();
return nullptr;
}
@@ -38,7 +38,7 @@ Location Value::getLoc() {
Region *Value::getParentRegion() {
if (auto *op = getDefiningOp())
return op->getParentRegion();
- return cast<BlockArgument>(this)->getOwner()->getParent();
+ return cast<BlockArgument>()->getOwner()->getParent();
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud