This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix crash in runtime-type-info.cpp
ClosedPublic

Authored by klausler on Aug 11 2021, 10:28 AM.

Details

Summary

Recent work in runtime assignments failed an assertion in fir-dev
while running tests (flang/test/Semantics/defined-ops.f90). This
test didn't fail in llvm-project/main because only the "new" Arm
driver is used now, and that only builds runtime derived type information
tables when some debug dumping options are enabled.

So add a reproducing test case to another test that is run with
-fdebug-dump-symbols, and fix the crash by emitting special procedure
binding information only for type-bound generic ASSIGNMENT(=) bindings
that are relevant to the runtime support library for use in intrinsic
assignment of derived types.

Diff Detail

Event Timeline

klausler created this revision.Aug 11 2021, 10:28 AM
klausler requested review of this revision.Aug 11 2021, 10:28 AM
This revision is now accepted and ready to land.Aug 11 2021, 10:47 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 12 2021, 9:32 AM