[llvm] [BOLT] [Profile] Fix type mismatch error (PR #73016)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 12:58:55 PST 2023


================
@@ -354,7 +357,15 @@ Error YAMLProfileReader::readProfile(BinaryContext &BC) {
       matchProfileToFunction(YamlBF, Function);
   }
 
-  for (auto &[CommonName, LTOProfiles]: LTOCommonNameMap) {
----------------
maksfb wrote:

Could you please try to build with:
```
    for (const auto &[CommonName, LTOProfiles]: LTOCommonNameMap) {
```
? I don't have a Windows builder available to test.

https://github.com/llvm/llvm-project/pull/73016


More information about the llvm-commits mailing list