llvm-project
60c90336 - [flang] Silence over-eager warning about interoperable character length (#97353)

Commit
1 year ago
[flang] Silence over-eager warning about interoperable character length (#97353) Make the results of the two IsInteroperableIntrinsicType() utility routines a tri-state std::optional<bool> so that cases where the character length is simply unknown can be distinguished from those cases where the length is known and not acceptable. Use this distinction to not emit a confusing warning about interoperability with C_LOC() arguments when the length is unknown and might well be acceptable during execution.
Author
Parents
Loading