[PATCH] D71134: [OpenMP] Require trivially copyable type for mapping
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 10:59:55 PST 2019
ABataev added inline comments.
================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:14917
if (FullCheck && !SemaRef.CurContext->isDependentContext() &&
- !QTy.isTrivialType(SemaRef.Context))
+ !QTy.isTriviallyCopyableType(SemaRef.Context))
SemaRef.Diag(SL, diag::warn_omp_non_trivial_type_mapped) << QTy << SR;
----------------
Need to add a check for defaulted destructor here, `isTriviallyCopyableType` does not include this check.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71134/new/
https://reviews.llvm.org/D71134
More information about the cfe-commits
mailing list