aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorPeixinQiao <qiaopeixin@huawei.com>2022-05-06 22:10:13 +0800
committerPeixinQiao <qiaopeixin@huawei.com>2022-05-06 22:10:13 +0800
commitac0f4c8f362e819316ca152315e930f4e6515e9d (patch)
treeaa070da0dc6f860c5d9fcda572bf9508382dfd9f /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent0863abe3ac47c281fdd35dc87d83c495cf741da0 (diff)
downloadllvm-ac0f4c8f362e819316ca152315e930f4e6515e9d.zip
llvm-ac0f4c8f362e819316ca152315e930f4e6515e9d.tar.gz
llvm-ac0f4c8f362e819316ca152315e930f4e6515e9d.tar.bz2
[flang] Fix AllocaOp/AllocMemOp type conversion
For arrays without a constant interior or arrays of character with dynamic length arrays, the data types are converted to a pointer to the element type, so the scale size of the constant extents needs to be counted. The previous AllocaOp conversion does not consider the arrays of character with dynamic length arrays, and the previous AllocMemOp conversion does not consider arrays without a constant interior. This fixes them and refactors the code so that it can be shared. Also add the test cases. Reviewed By: Jean Perier Differential Revision: https://reviews.llvm.org/D124766
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions