[OpenMP] Fix another after scope after D129608

https://lab.llvm.org/buildbot/#/builders/5/builds/26770
This commit is contained in:
Vitaly Buka 2022-08-13 12:13:27 -07:00
parent 9a75033402
commit 2f9be69d84
1 changed files with 6 additions and 3 deletions

View File

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