aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseOpenMP.cpp
diff options
context:
space:
mode:
authornicebert <110385235+nicebert@users.noreply.github.com>2024-07-25 21:30:14 +0200
committerGitHub <noreply@github.com>2024-07-25 14:30:14 -0500
commit8470a23c488ffa0fe3a0ed6fe776b9bb6336897b (patch)
tree2bdf7d2b6d651fb3981d439e719abc9b7ab53d9a /clang/lib/Parse/ParseOpenMP.cpp
parent59e91d4c5094641ffa0763c17599b1d0d7c6fbb0 (diff)
downloadllvm-8470a23c488ffa0fe3a0ed6fe776b9bb6336897b.zip
llvm-8470a23c488ffa0fe3a0ed6fe776b9bb6336897b.tar.gz
llvm-8470a23c488ffa0fe3a0ed6fe776b9bb6336897b.tar.bz2
[OpenMP] Defaultmap: fixes scalar issue, adds all variable category (#99315)
Fixes issue with defaultmap where scalar isn't handled correctly for present modifier. Adds all variable cateogry introduced in OpenMP 5.2 and alters existing tests for error messages to check OpenMP 5.2 defaultmap messages.
Diffstat (limited to 'clang/lib/Parse/ParseOpenMP.cpp')
-rw-r--r--clang/lib/Parse/ParseOpenMP.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp
index f5b44d2..e975e96 100644
--- a/clang/lib/Parse/ParseOpenMP.cpp
+++ b/clang/lib/Parse/ParseOpenMP.cpp
@@ -3837,6 +3837,7 @@ OMPClause *Parser::ParseOpenMPSingleExprWithArgClause(OpenMPDirectiveKind DKind,
// Get a defaultmap modifier
unsigned Modifier = getOpenMPSimpleClauseType(
Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok), getLangOpts());
+
// Set defaultmap modifier to unknown if it is either scalar, aggregate, or
// pointer
if (Modifier < OMPC_DEFAULTMAP_MODIFIER_unknown)