diff options
author | Valentin Clement <clementval@gmail.com> | 2022-11-25 13:47:25 +0100 |
---|---|---|
committer | Valentin Clement <clementval@gmail.com> | 2022-11-25 13:47:50 +0100 |
commit | 8d692b4b8db82709355886939bfffb658db9e65a (patch) | |
tree | eab0e7e635ab3af8d9982a0ef2577ec17106a2d1 /llvm/lib/Support/Threading.cpp | |
parent | aa14f002d57b8b3cf30f07c782d2d93f358e51fd (diff) | |
download | llvm-8d692b4b8db82709355886939bfffb658db9e65a.zip llvm-8d692b4b8db82709355886939bfffb658db9e65a.tar.gz llvm-8d692b4b8db82709355886939bfffb658db9e65a.tar.bz2 |
[flang] Avoid crash in lowering for unlimited polymorphic function return
The dynamic type of an unlimited polymorphic entity has the
derived category but does not have derived type spec. This leads
to a crash for a nullptr dereference. This patch avoids this crash
by checking if that the dynamic type is not unlimited polymorphic
before dereferencing the derived type spec.
Reviewed By: PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D138691
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions