cchen added a comment. Below test asserts inside `generateInfoForComponentList`:
Assertion failed: (!IsPointer && "Unexpected base element with the pointer type."), function generateInfoForComponentList, file /Users/cchen/workspace/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp, line 7754. PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. #define LEN 100 struct Type { int *p; }; int buf[LEN]; int main() { int i; struct Type s; s.p = buf; for (i = 0; i < LEN; i++) { s.p[i] = 0; } #pragma omp target map(s.p) map(s.p[:100]) { *(s.p+5) = 1; } } Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D86119/new/ https://reviews.llvm.org/D86119 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits