[Mlir-commits] [mlir] 1cd84be - [mlir] Add missing llvm::iterator_facade_base<...>::operator++ for
Haojian Wu
llvmlistbot at llvm.org
Fri Apr 24 05:04:22 PDT 2020
Author: Haojian Wu
Date: 2020-04-24T14:02:58+02:00
New Revision: 1cd84be17aab8fecc2dbac8870cc89935feb2f66
URL: https://github.com/llvm/llvm-project/commit/1cd84be17aab8fecc2dbac8870cc89935feb2f66
DIFF: https://github.com/llvm/llvm-project/commit/1cd84be17aab8fecc2dbac8870cc89935feb2f66.diff
LOG: [mlir] Add missing llvm::iterator_facade_base<...>::operator++ for
UseIterator;
This would fix our internal build.
Added:
Modified:
mlir/include/mlir/IR/Operation.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/Operation.h b/mlir/include/mlir/IR/Operation.h
index f715ac52b129..e49be558a5f2 100644
--- a/mlir/include/mlir/IR/Operation.h
+++ b/mlir/include/mlir/IR/Operation.h
@@ -508,6 +508,8 @@ class Operation final
/// use.
explicit UseIterator(Operation *op, bool end = false);
+ using llvm::iterator_facade_base<UseIterator, std::forward_iterator_tag,
+ OpOperand>::operator++;
UseIterator &operator++();
OpOperand *operator->() const { return use.getOperand(); }
OpOperand &operator*() const { return *use.getOperand(); }
More information about the Mlir-commits
mailing list