[flang] Handle correctly polymorphic descriptor for IO input
authorValentin Clement <clementval@gmail.com>
Fri, 9 Dec 2022 14:59:59 +0000 (15:59 +0100)
committerValentin Clement <clementval@gmail.com>
Fri, 9 Dec 2022 15:06:54 +0000 (16:06 +0100)
commitbf773a61ce693c73125af360b559c3912a5b8afe
treedb7c08a84ee4d12e012a20b0835a7c5fd86fe3fa
parent258e551615dc8a93253874d6642481c82ec72f95
[flang] Handle correctly polymorphic descriptor for IO input

Polymorphic entities are already emboxed. Just update
the code to use `BaseBoxType` instead of `BoxType`.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D139707
flang/lib/Lower/IO.cpp
flang/test/Lower/polymorphic.f90