Author: Vitaly Buka Date: 2022-08-13T12:13:54-07:00 New Revision: 2f9be69d843d12864128f4e23920ba214c5e212d
URL: https://github.com/llvm/llvm-project/commit/2f9be69d843d12864128f4e23920ba214c5e212d DIFF: https://github.com/llvm/llvm-project/commit/2f9be69d843d12864128f4e23920ba214c5e212d.diff LOG: [OpenMP] Fix another after scope after D129608 https://lab.llvm.org/buildbot/#/builders/5/builds/26770 Added: Modified: clang/lib/CodeGen/CGOpenMPRuntime.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index b2f393e35287..67f4d238200c 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -9070,15 +9070,18 @@ class MappableExprsHandler { std::tuple<OMPClauseMappableExprCommon::MappableExprComponentListRef, OpenMPMapClauseKind, ArrayRef<OpenMPMapModifierKind>, bool, const ValueDecl *, const Expr *>; + static const OpenMPMapModifierKind ModifierKinds[] = { + OMPC_MAP_MODIFIER_unknown, + }; SmallVector<MapData, 4> DeclComponentLists; // For member fields list in is_device_ptr, store it in // DeclComponentLists for generating components info. auto It = DevPointersMap.find(VD); if (It != DevPointersMap.end()) for (const auto& MCL : It->second) - DeclComponentLists.emplace_back( - MCL, OMPC_MAP_to, OMPC_MAP_MODIFIER_unknown, /*IsImpicit = */ true, - nullptr, nullptr); + DeclComponentLists.emplace_back(MCL, OMPC_MAP_to, ModifierKinds, + /*IsImpicit = */ true, nullptr, + nullptr); assert(CurDir.is<const OMPExecutableDirective *>() && "Expect a executable directive"); const auto *CurExecDir = CurDir.get<const OMPExecutableDirective *>(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits