[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
parent
aa14f002
Please register or sign in to comment