Skip to content

Commit 3af586f

Browse files
authored
[BOLT] Fix type mismatch error (#73016)
Fix build issue on Windows. Fixes #73006
1 parent 42d4840 commit 3af586f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/lib/Profile/YAMLProfileReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static llvm::cl::opt<bool>
3131
llvm::cl::opt<bool> ProfileUseDFS("profile-use-dfs",
3232
cl::desc("use DFS order for YAML profile"),
3333
cl::Hidden, cl::cat(BoltOptCategory));
34-
}
34+
} // namespace opts
3535

3636
namespace llvm {
3737
namespace bolt {
@@ -354,7 +354,7 @@ Error YAMLProfileReader::readProfile(BinaryContext &BC) {
354354
matchProfileToFunction(YamlBF, Function);
355355
}
356356

357-
for (auto &[CommonName, LTOProfiles]: LTOCommonNameMap) {
357+
for (const auto &[CommonName, LTOProfiles] : LTOCommonNameMap) {
358358
if (!LTOCommonNameFunctionMap.contains(CommonName))
359359
continue;
360360
std::unordered_set<BinaryFunction *> &Functions =

0 commit comments

Comments
 (0)