[flang][hlfir][NFC] catch dynamically optional args with no lowering
authorTom Eccles <tom.eccles@arm.com>
Mon, 17 Jul 2023 15:52:54 +0000 (15:52 +0000)
committerTom Eccles <tom.eccles@arm.com>
Tue, 18 Jul 2023 11:03:35 +0000 (11:03 +0000)
commit75f459d555a46a337c9f77948392fa9d750ea555
tree0f3832cd2f9ecafe92772fd11d75b9c2eebabb83
parentdb7b665c5c7136d21665555916785129460b5860
[flang][hlfir][NFC] catch dynamically optional args with no lowering

These should be lowered with genOptionalValue as in D154897, but I
haven't found any cases where this code path is actually hit (flang
tests, gfortran test suite), so I don't think it would be testable.
Adding an assertion for if this code path ever becomes live.

Differential Revision: https://reviews.llvm.org/D155477
flang/lib/Lower/ConvertCall.cpp