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.
clang-format: please reformat the code