[flang-commits] [flang] [flang] Add hlfir.char_trim operation (PR #156064)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Wed Sep 3 10:06:13 PDT 2025


luporl wrote:

Thanks for the review @vzakhari!

The issue was related to the return type of `hlfir.char_trim`.
As the runtime Trim function allocates the result and as it may have a different length than its input character string, it must always be a character with unknown length.

https://github.com/llvm/llvm-project/pull/156064


More information about the flang-commits mailing list