[Mlir-commits] [mlir] cd8cdbd - [mlir] Fix unqualified call to 'std::move' in TransformOps.cpp
Jie Fu
llvmlistbot at llvm.org
Fri Jun 2 07:07:31 PDT 2023
Author: Jie Fu
Date: 2023-06-02T22:06:46+08:00
New Revision: cd8cdbd9154ac5d3cc4e7cd8a9bbda42cd35dfad
URL: https://github.com/llvm/llvm-project/commit/cd8cdbd9154ac5d3cc4e7cd8a9bbda42cd35dfad
DIFF: https://github.com/llvm/llvm-project/commit/cd8cdbd9154ac5d3cc4e7cd8a9bbda42cd35dfad.diff
LOG: [mlir] Fix unqualified call to 'std::move' in TransformOps.cpp
/data/llvm-project/mlir/lib/Dialect/Transform/IR/TransformOps.cpp:230:35: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call]
patterns.try_emplace(attr, [f = move(fn)](RewritePatternSet &patternSet) {
^
std::
1 error generated.
Added:
Modified:
mlir/lib/Dialect/Transform/IR/TransformOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
index c8326f8fd9b0..49ec075f6070 100644
--- a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
+++ b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
@@ -227,7 +227,7 @@ void transform::PatternRegistry::registerPatterns(
StringRef identifier, PopulatePatternsWithBenefitFn &&fn) {
StringAttr attr = builder.getStringAttr(identifier);
assert(!patterns.contains(attr) && "patterns identifier is already in use");
- patterns.try_emplace(attr, [f = move(fn)](RewritePatternSet &patternSet) {
+ patterns.try_emplace(attr, [f = std::move(fn)](RewritePatternSet &patternSet) {
f(patternSet, /*benefit=*/1);
});
}
More information about the Mlir-commits
mailing list