Author: Vitaly Buka Date: 2022-08-17T18:59:48-07:00 New Revision: 36c9f5a58b8644389385a87e3ea43805a3b24665
URL: https://github.com/llvm/llvm-project/commit/36c9f5a58b8644389385a87e3ea43805a3b24665 DIFF: https://github.com/llvm/llvm-project/commit/36c9f5a58b8644389385a87e3ea43805a3b24665.diff LOG: [NFC][OpenMP] Simplify 2f9be69d843 Added: Modified: clang/lib/CodeGen/CGOpenMPRuntime.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index 67f4d238200cf..dd219cc76d402 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -9070,18 +9070,17 @@ 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, ModifierKinds, + for (const auto &MCL : It->second) { + static const OpenMPMapModifierKind Unknown = OMPC_MAP_MODIFIER_unknown; + DeclComponentLists.emplace_back(MCL, OMPC_MAP_to, Unknown, /*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