forked from OSchip/llvm-project
[NFC][OpenMP] Simplify 2f9be69d84
This commit is contained in:
parent
5bc8791187
commit
36c9f5a58b
|
@ -9070,18 +9070,17 @@ public:
|
||||||
std::tuple<OMPClauseMappableExprCommon::MappableExprComponentListRef,
|
std::tuple<OMPClauseMappableExprCommon::MappableExprComponentListRef,
|
||||||
OpenMPMapClauseKind, ArrayRef<OpenMPMapModifierKind>, bool,
|
OpenMPMapClauseKind, ArrayRef<OpenMPMapModifierKind>, bool,
|
||||||
const ValueDecl *, const Expr *>;
|
const ValueDecl *, const Expr *>;
|
||||||
static const OpenMPMapModifierKind ModifierKinds[] = {
|
|
||||||
OMPC_MAP_MODIFIER_unknown,
|
|
||||||
};
|
|
||||||
SmallVector<MapData, 4> DeclComponentLists;
|
SmallVector<MapData, 4> DeclComponentLists;
|
||||||
// For member fields list in is_device_ptr, store it in
|
// For member fields list in is_device_ptr, store it in
|
||||||
// DeclComponentLists for generating components info.
|
// DeclComponentLists for generating components info.
|
||||||
auto It = DevPointersMap.find(VD);
|
auto It = DevPointersMap.find(VD);
|
||||||
if (It != DevPointersMap.end())
|
if (It != DevPointersMap.end())
|
||||||
for (const auto& MCL : It->second)
|
for (const auto &MCL : It->second) {
|
||||||
DeclComponentLists.emplace_back(MCL, OMPC_MAP_to, ModifierKinds,
|
static const OpenMPMapModifierKind Unknown = OMPC_MAP_MODIFIER_unknown;
|
||||||
|
DeclComponentLists.emplace_back(MCL, OMPC_MAP_to, Unknown,
|
||||||
/*IsImpicit = */ true, nullptr,
|
/*IsImpicit = */ true, nullptr,
|
||||||
nullptr);
|
nullptr);
|
||||||
|
}
|
||||||
assert(CurDir.is<const OMPExecutableDirective *>() &&
|
assert(CurDir.is<const OMPExecutableDirective *>() &&
|
||||||
"Expect a executable directive");
|
"Expect a executable directive");
|
||||||
const auto *CurExecDir = CurDir.get<const OMPExecutableDirective *>();
|
const auto *CurExecDir = CurDir.get<const OMPExecutableDirective *>();
|
||||||
|
|
Loading…
Reference in New Issue