The problem is that "alloctor" from omp_init_allocator gets truncated before passing to __kmp_alloc.
To fix this, convert int type to UnsignedPointerDiffType to avoid truncate
Differential D129872
[clang][OpenMP] Fix runtime crash in the call to __kmp_alloc. jyu2 on Jul 15 2022, 9:08 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions Why does it get truncated if the type must be integer? Probably, something incorrect in sema. Comment Actions This is only failed with C. But not for C++. So I don't think we have problem for Seam. I may missing something...
for C++:
Comment Actions If the type does not match, we have a problem with casting. Need to add an explicit cast to int-like type rather than avoid implicit casts.
|
It must be int type, no?