[Openmp-commits] [PATCH] D122852: [OPENMP] Fix assertion in clang::ASTContext::getTypeInfoImpl
Jennifer Yu via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Mar 31 15:06:03 PDT 2022
jyu2 created this revision.
jyu2 added reviewers: ABataev, jdoerfert, mikerice.
jyu2 added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
jyu2 requested review of this revision.
Herald added a subscriber: sstefan1.
The problem is when mapping of array section, currently call
getTypeSizeInChars with BuiltinType::OMPArraySection causing assert.
One way to fix this is using array element type instead.
BTW with this fix, test will fail in libomptarget.so
with error message: double free or corruption (out)
But it passes with intel customized libomptarget.so
I am not sure it is clang problem. I will submit issues to
libtarget after this checked in for more investigation.
Repository:
rC Clang
https://reviews.llvm.org/D122852
Files:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_map_codegen_36.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122852.419576.patch
Type: text/x-patch
Size: 45452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220331/6c3b8798/attachment-0001.bin>
More information about the Openmp-commits
mailing list