aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-03-26 10:33:17 -0700
committerGitHub <noreply@github.com>2024-03-26 10:33:17 -0700
commit1eaef44532266694c28f49f5c0373e7fc93d4f82 (patch)
tree42af2a6e1379f25565668bcb82ded124974d2d4e /mlir/lib
parent26dd12871ca8a3dcc5e6920add231af354310088 (diff)
downloadllvm-1eaef44532266694c28f49f5c0373e7fc93d4f82.zip
llvm-1eaef44532266694c28f49f5c0373e7fc93d4f82.tar.gz
llvm-1eaef44532266694c28f49f5c0373e7fc93d4f82.tar.bz2
[TosaToTensor] Fix a warning (#86703)
This patch fixes: mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp:76:46: error: 'multiplies' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
Diffstat (limited to 'mlir/lib')
-rw-r--r--mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp b/mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp
index 11ba98d..cd6da35 100644
--- a/mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp
+++ b/mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp
@@ -73,7 +73,7 @@ TensorType inferReshapeExpandedType(TensorType inputType,
// Calculate the product of all elements in 'newShape' except for the -1
// placeholder, which we discard by negating the result.
int64_t totalSizeNoPlaceholder = -std::accumulate(
- newShape.begin(), newShape.end(), 1, std::multiplies());
+ newShape.begin(), newShape.end(), 1, std::multiplies<int64_t>());
// If there is a 0 component in 'newShape', resolve the placeholder as 0.
if (totalSizeNoPlaceholder == 0)