diff options
author | Peter Steinfeld <psteinfeld@nvidia.com> | 2021-06-04 13:24:19 -0700 |
---|---|---|
committer | Peter Steinfeld <psteinfeld@nvidia.com> | 2021-06-04 14:33:52 -0700 |
commit | 2b795ec682ff4a9afbfe4e5c102a51689b270ecc (patch) | |
tree | c25cc3bfeb18d90efc3e327746d0097c7f83872d /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | f2622a150adea31290daee0d04bf385d387fbc04 (diff) | |
download | llvm-2b795ec682ff4a9afbfe4e5c102a51689b270ecc.zip llvm-2b795ec682ff4a9afbfe4e5c102a51689b270ecc.tar.gz llvm-2b795ec682ff4a9afbfe4e5c102a51689b270ecc.tar.bz2 |
[flang] Check for undefined derived types
It's possible to specify refer to an undefined derived type as the type of a
component of another derived type and then never define the type of the
component. We were not detecting this situation. To fix this, I
changed the value of isForwardReferenced_ in the symbol's
DerivedTypeDetails and checked for it when performing other derived type
checks.
I also had to record the fact that error messages were previously
emitted for the same problem in some cases so that I could avoid
duplicate messages.
I also added a test.
Differential Revision: https://reviews.llvm.org/D103714
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
0 files changed, 0 insertions, 0 deletions