[Mlir-commits] [mlir] 52f941a - [mlir][tosa] Fix '-Wreturn-type'. NFC
Michael Liao
llvmlistbot at llvm.org
Wed Mar 26 08:43:39 PDT 2025
Author: Michael Liao
Date: 2025-03-26T11:43:24-04:00
New Revision: 52f941adbc2815487a0582ffedf3fb8cebe9cedd
URL: https://github.com/llvm/llvm-project/commit/52f941adbc2815487a0582ffedf3fb8cebe9cedd
DIFF: https://github.com/llvm/llvm-project/commit/52f941adbc2815487a0582ffedf3fb8cebe9cedd.diff
LOG: [mlir][tosa] Fix '-Wreturn-type'. NFC
Added:
Modified:
mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h b/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
index d73b288d2c8bf..716e55706c625 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
@@ -81,7 +81,8 @@ class ProfileInfoDepot {
// Base
template <typename T>
LogicalResult populateProfileInfo(T op) {
- op->emitOpError() << "profile requirement for this op has not been defined";
+ return op->emitOpError()
+ << "profile requirement for this op has not been defined";
}
// For conv2d, conv3d, transpose_conv2d, and depthwise_conv2d.
template <typename T>
More information about the Mlir-commits
mailing list