aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2023-12-08 15:25:56 +0100
committerGitHub <noreply@github.com>2023-12-08 15:25:56 +0100
commitbdb5b4421593d61c454abf3148aabcd4c2ff7811 (patch)
tree4168cd8103ddfc5fc929484d7dbeaf695b870805 /llvm/lib/Support/CommandLine.cpp
parent9b154dad5b465bfc45b962488682ed4f95e049a3 (diff)
downloadllvm-bdb5b4421593d61c454abf3148aabcd4c2ff7811.zip
llvm-bdb5b4421593d61c454abf3148aabcd4c2ff7811.tar.gz
llvm-bdb5b4421593d61c454abf3148aabcd4c2ff7811.tar.bz2
[flang] Fix length handling in character kind implicit conversion (#74586)
When assigning to a whole allocatable, lowering is dealing with the implicit conversion to preserve the RHS lower bounds. In case of character KIND mismatch, the code was setting the new RHS length to the one from the LHS, which is wrong for two reasons: - no padding/truncation was actually done in the conversion - the RHS length should anyway not be touched since the one from the allocatable LHS may change to become the one of the RHS. Update the code to preserve the RHS type length when materializing the implicit character KIND conversion.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions