[PATCH] D57690: [OPENMP] issue error messages for multiple teams contructs in a target constructs
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 4 08:27:23 PST 2019
ABataev added inline comments.
================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:7070
const auto *OED = dyn_cast<OMPExecutableDirective>(*I);
- if (!OED || !isOpenMPTeamsDirective(OED->getDirectiveKind())) {
+ if (!OED || !isOpenMPTeamsDirective(OED->getDirectiveKind()) ||
+ (isOpenMPTeamsDirective(OED->getDirectiveKind()) &&
----------------
just `if (!OED || !isOpenMPTeamsDirective(OED->getDirectiveKind() || OMPTeamsFound)`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57690/new/
https://reviews.llvm.org/D57690
More information about the cfe-commits
mailing list