[flang] Set initial size and type code for unlimited polymorphic descriptor
authorValentin Clement <clementval@gmail.com>
Tue, 22 Nov 2022 13:47:05 +0000 (14:47 +0100)
committerValentin Clement <clementval@gmail.com>
Tue, 22 Nov 2022 13:48:34 +0000 (14:48 +0100)
commit9d395e79a6ae87c5dead62ed37c0a46a1f0a7e9e
treeb8acc16c575694f5452f38dd762e64bd12201535
parent7d098988bc32d2894c338640cbee7084a02c15c8
[flang] Set initial size and type code for unlimited polymorphic descriptor

Initialization of unlimited polymorphic descriptor was raising an error.
This patch sets a default size and type code for unlimited polymoprhic descriptor
that will be updated once allocated/assigned.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D138479
flang/lib/Optimizer/CodeGen/CodeGen.cpp
flang/test/Fir/polymorphic.fir [new file with mode: 0644]