[OpenMP] Fix use after scope after D129608

Broken builder https://lab.llvm.org/buildbot/#/builders/5/builds/26764
This commit is contained in:
Vitaly Buka 2022-08-13 09:39:49 -07:00
parent b23e72a2e7
commit f385eaf48f
1 changed files with 1 additions and 1 deletions

View File

@ -9075,7 +9075,7 @@ public:
// DeclComponentLists for generating components info.
auto It = DevPointersMap.find(VD);
if (It != DevPointersMap.end())
for (const auto MCL : It->second)
for (const auto& MCL : It->second)
DeclComponentLists.emplace_back(
MCL, OMPC_MAP_to, OMPC_MAP_MODIFIER_unknown, /*IsImpicit = */ true,
nullptr, nullptr);