[Openmp-commits] [PATCH] D86119: [OPENMP50]Allow overlapping mapping in target constrcuts.
Chi Chun Chen via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Dec 7 12:59:27 PST 2020
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
More information about the Openmp-commits
mailing list