[PATCH] D138614: [Clang][OpenMP][AMDGPU] Fix capture of variably modified type alias in teams distribute
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 29 13:19:46 PST 2022
ABataev added inline comments.
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:243
if (!FD->getType()->isReferenceType()) {
- assert(!VD->getType()->isVariablyModifiedType() &&
+ bool isVMTTy = VD->getType()->isVariablyModifiedType();
+ assert((!isVMTTy || (isVMTTy && !IsForCombinedParallelRegion)) &&
----------------
Still naming, `IsVMTTy`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138614/new/
https://reviews.llvm.org/D138614
More information about the cfe-commits
mailing list