aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorPeter Steinfeld <psteinfeld@nvidia.com>2021-06-04 13:24:19 -0700
committerPeter Steinfeld <psteinfeld@nvidia.com>2021-06-04 14:33:52 -0700
commit2b795ec682ff4a9afbfe4e5c102a51689b270ecc (patch)
treec25cc3bfeb18d90efc3e327746d0097c7f83872d /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parentf2622a150adea31290daee0d04bf385d387fbc04 (diff)
downloadllvm-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