aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectLog.cpp
diff options
context:
space:
mode:
authorMats Petersson <mats.petersson@arm.com>2022-07-06 13:38:47 +0100
committerMats Petersson <mats.petersson@arm.com>2022-07-28 21:00:04 +0100
commit7ae391148d6fba31fa4cb84678fe28ce6638e98c (patch)
treef1641b28ddaacf631bbf467dd6baf8a57eca998e /lldb/source/Commands/CommandObjectLog.cpp
parente7c004854d2bbcaa3eafdf25734915d33952d369 (diff)
downloadllvm-7ae391148d6fba31fa4cb84678fe28ce6638e98c.zip
llvm-7ae391148d6fba31fa4cb84678fe28ce6638e98c.tar.gz
llvm-7ae391148d6fba31fa4cb84678fe28ce6638e98c.tar.bz2
[flang]Fix incorrect array type transformation
When an array is defined with "unknown" size, such as fir.array<2x?x5xi32>, it should be converted to llvm.array<10 x i32>. The code so far has been converting it to llvm.ptr<i32>. Using a different function to check the if there starting are constant dimensions, rather than if ALL dimensions are constant, it now produces the correct array form. Some tests has been updated, so they are now checking the new behaviour rather than the old behaviour - so there's no need to add further tests for this particular scenario. This was originally found when compiling Spec 17 code, where an assert in a GepOP was hit. That is bug #56141, which this change fixes. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D129196
Diffstat (limited to 'lldb/source/Commands/CommandObjectLog.cpp')
0 files changed, 0 insertions, 0 deletions