Skip to content

Commit 52dbb8d

Browse files
authored
[CI] Address miscellaneous Bazel / Clang build failures (#4344)
- Adds an explicit dependency for headers used in `TorchMLIRInitAll` - Addresses a `std::accumulate` usage issue: https://godbolt.org/z/xs441Ebfe Signed-off-by: Artem Gindinson <[email protected]>
1 parent 8b77de9 commit 52dbb8d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/RefBackend/RefBackend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static std::string getConsumeReturnFunctionNameForReturnTypes(TypeRange types) {
109109
tokens.push_back(getTypeToken(type));
110110

111111
return std::accumulate(tokens.begin(), tokens.end(), std::string(),
112-
[](std::string &a, std::string &b) {
112+
[](std::string a, std::string b) {
113113
return a.empty() ? b : (a + "_" + b);
114114
});
115115
}

utils/bazel/torch-mlir-overlay/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ cc_library(
909909
"@llvm-project//mlir:AllExtensions",
910910
"@llvm-project//mlir:Dialect",
911911
"@llvm-project//mlir:DialectUtils",
912+
"@llvm-project//mlir:FuncExtensions",
912913
"@llvm-project//mlir:IR",
913914
"@llvm-project//mlir:TensorInferTypeOpInterfaceImpl",
914915
"@stablehlo//:linalg_passes",

0 commit comments

Comments
 (0)