[Mlir-commits] [mlir] d8b6df2 - [mlir] Fix -Wunused-result in ElementwiseOpFusion.cpp (NFC)
Jie Fu
llvmlistbot at llvm.org
Tue Aug 20 18:05:27 PDT 2024
Author: Jie Fu
Date: 2024-08-21T09:04:24+08:00
New Revision: d8b6df2e8b1d294d92239e507c19b5622d86490d
URL: https://github.com/llvm/llvm-project/commit/d8b6df2e8b1d294d92239e507c19b5622d86490d
DIFF: https://github.com/llvm/llvm-project/commit/d8b6df2e8b1d294d92239e507c19b5622d86490d.diff
LOG: [mlir] Fix -Wunused-result in ElementwiseOpFusion.cpp (NFC)
/llvm-project/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp:124:7:
error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
opOperandsToIgnore.pop_back_val();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp b/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
index e510302840d32c..c818675993c2c3 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp
@@ -121,7 +121,7 @@ llvm::SmallDenseSet<int> mlir::linalg::getPreservedProducerResults(
preservedProducerResults.insert(producerResult.index());
// In case the operand can't be dropped
- opOperandsToIgnore.pop_back_val();
+ (void)opOperandsToIgnore.pop_back_val();
}
}
return preservedProducerResults;
More information about the Mlir-commits
mailing list