[PATCH] D138297: [Clang][OpenMP] Add default map type for target enter/exit data
Gheorghe-Teodor Bercea via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 18 12:20:05 PST 2022
doru1004 marked an inline comment as done.
doru1004 added inline comments.
================
Comment at: clang/lib/Parse/ParseOpenMP.cpp:4367-4371
+ if (getLangOpts().OpenMP >= 52)
+ if (DKind == OMPD_target_enter_data)
+ Data.ExtraModifier = OMPC_MAP_to;
+ else if (DKind == OMPD_target_exit_data)
+ Data.ExtraModifier = OMPC_MAP_from;
----------------
ABataev wrote:
> Add braces, otherwise the compiler generates a warning
Thanks for pointing it out!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138297/new/
https://reviews.llvm.org/D138297
More information about the cfe-commits
mailing list