summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2020-01-03 13:12:25 -0800
committerRiver Riddle <riverriddle@google.com>2020-01-03 13:30:18 -0800
commit0d9ca98c1a4676837e6e1f4ea9d9d1dea789b88c (patch)
treea3de8cb886f256758e04331e132f93662e5aafd4 /mlir/lib/IR
parent21309eafdebaa0041a83a026ae011e305b2f52a0 (diff)
downloadbcm5719-llvm-0d9ca98c1a4676837e6e1f4ea9d9d1dea789b88c.tar.gz
bcm5719-llvm-0d9ca98c1a4676837e6e1f4ea9d9d1dea789b88c.zip
[mlir] Fix indexed_accessor_range to properly forward the derived class.
Summary: This fixes the return value of helper methods on the base range class. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D72127
Diffstat (limited to 'mlir/lib/IR')
-rw-r--r--mlir/lib/IR/OperationSupport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/IR/OperationSupport.cpp b/mlir/lib/IR/OperationSupport.cpp
index 436c8325cb6..176ab07b09f 100644
--- a/mlir/lib/IR/OperationSupport.cpp
+++ b/mlir/lib/IR/OperationSupport.cpp
@@ -152,8 +152,8 @@ OperandRange::OperandRange(Operation *op)
ResultRange::ResultRange(Operation *op)
: ResultRange(op, /*startIndex=*/0, op->getNumResults()) {}
-/// See `detail::indexed_accessor_range_base` for details.
-OpResult ResultRange::dereference_iterator(Operation *op, ptrdiff_t index) {
+/// See `indexed_accessor_range` for details.
+OpResult ResultRange::dereference(Operation *op, ptrdiff_t index) {
return op->getResult(index);
}
OpenPOWER on IntegriCloud