[clang] f385eaf - [OpenMP] Fix use after scope after D129608
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 13 09:41:01 PDT 2022
Author: Vitaly Buka
Date: 2022-08-13T09:40:51-07:00
New Revision: f385eaf48f5c4123b61272cd243c339d6f8526ed
URL: https://github.com/llvm/llvm-project/commit/f385eaf48f5c4123b61272cd243c339d6f8526ed
DIFF: https://github.com/llvm/llvm-project/commit/f385eaf48f5c4123b61272cd243c339d6f8526ed.diff
LOG: [OpenMP] Fix use after scope after D129608
Broken builder https://lab.llvm.org/buildbot/#/builders/5/builds/26764
Added:
Modified:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index a2d36e7df6f12..b2f393e352879 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -9075,7 +9075,7 @@ class MappableExprsHandler {
// 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);
More information about the cfe-commits
mailing list