Skip to content

Commit 52f941a

Browse files
committed
[mlir][tosa] Fix '-Wreturn-type'. NFC
1 parent 3f82c3d commit 52f941a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ class ProfileInfoDepot {
8181
// Base
8282
template <typename T>
8383
LogicalResult populateProfileInfo(T op) {
84-
op->emitOpError() << "profile requirement for this op has not been defined";
84+
return op->emitOpError()
85+
<< "profile requirement for this op has not been defined";
8586
}
8687
// For conv2d, conv3d, transpose_conv2d, and depthwise_conv2d.
8788
template <typename T>

0 commit comments

Comments
 (0)