[Mlir-commits] [mlir] 0ceb332 - [mlir] Fix a missing override warning
Kazu Hirata
llvmlistbot at llvm.org
Tue Jan 11 11:03:34 PST 2022
Author: Kazu Hirata
Date: 2022-01-11T11:03:22-08:00
New Revision: 0ceb332a761c308c3643f36bdb330bbef9a199d8
URL: https://github.com/llvm/llvm-project/commit/0ceb332a761c308c3643f36bdb330bbef9a199d8
DIFF: https://github.com/llvm/llvm-project/commit/0ceb332a761c308c3643f36bdb330bbef9a199d8.diff
LOG: [mlir] Fix a missing override warning
This patch fixes:
mlir/lib/Dialect/Tosa/Transforms/TosaOptionalDecompositions.cpp:28:8:
error: 'runOnFunction' overrides a member function but is not marked
'override' [-Werror,-Wsuggest-override]
Added:
Modified:
mlir/lib/Dialect/Tosa/Transforms/TosaOptionalDecompositions.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaOptionalDecompositions.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaOptionalDecompositions.cpp
index 50fd635c8a46..d0a8f16c1d7d 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaOptionalDecompositions.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaOptionalDecompositions.cpp
@@ -25,7 +25,7 @@ namespace {
struct TosaOptionalDecompositions
: public TosaOptionalDecompositionsBase<TosaOptionalDecompositions> {
- void runOnFunction() {
+ void runOnFunction() override {
auto *ctx = &getContext();
RewritePatternSet patterns(ctx);
auto func = getFunction();
More information about the Mlir-commits
mailing list