[NFC][OpenMP] Simplify 2f9be69d84

This commit is contained in:
Vitaly Buka 2022-08-13 13:10:40 -07:00
parent 5bc8791187
commit 36c9f5a58b
1 changed files with 4 additions and 5 deletions

View File

@ -9070,18 +9070,17 @@ public:
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 *>();