[PATCH] D107200: Stop emit incomplete type error for a variable in an omp map clause where should not.
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 30 16:12:01 PDT 2021
ABataev accepted this revision.
ABataev added a comment.
This revision is now accepted and ready to land.
LG with a nit.
================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:18446
bool FullCheck = true) {
- NamedDecl *ND;
- if (QTy->isIncompleteType(&ND)) {
- SemaRef.Diag(SL, diag::err_incomplete_type) << QTy << SR;
+ if (SemaRef.RequireCompleteType(SL, QTy,
+ diag::err_incomplete_type))
----------------
Formatting?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107200/new/
https://reviews.llvm.org/D107200
More information about the cfe-commits
mailing list