[Mlir-commits] [mlir] 3766ca7 - [MLIR] Fix missing return statement warning in PatternMatch.h
Uday Bondhugula
llvmlistbot at llvm.org
Thu Apr 14 00:36:44 PDT 2022
Author: Uday Bondhugula
Date: 2022-04-14T13:03:21+05:30
New Revision: 3766ca75f87452736f8e4718b75de0eb3b3dcc4e
URL: https://github.com/llvm/llvm-project/commit/3766ca75f87452736f8e4718b75de0eb3b3dcc4e
DIFF: https://github.com/llvm/llvm-project/commit/3766ca75f87452736f8e4718b75de0eb3b3dcc4e.diff
LOG: [MLIR] Fix missing return statement warning in PatternMatch.h
Fix missing return statement warning in PatternMatch.h. NFC.
```
mlir/include/mlir/IR/PatternMatch.h:983:3: warning: no return statement in
function returning non-void [-Wreturn-type]
```
Differential Revision: https://reviews.llvm.org/D123756
Added:
Modified:
mlir/include/mlir/IR/PatternMatch.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/PatternMatch.h b/mlir/include/mlir/IR/PatternMatch.h
index aa67709605cd7..751ec2af2c9d2 100644
--- a/mlir/include/mlir/IR/PatternMatch.h
+++ b/mlir/include/mlir/IR/PatternMatch.h
@@ -980,6 +980,7 @@ struct ProcessPDLValue<std::string>
static_assert(always_false<T>,
"`std::string` arguments require a string copy, use "
"`StringRef` for string-like arguments instead");
+ return {};
}
static void processAsResult(PatternRewriter &rewriter, PDLResultList &results,
StringRef value) {
More information about the Mlir-commits
mailing list