[flang-commits] [flang] [flang] Avoid descriptor conversion for descriptor args with ignore_tkr(c) (PR #176240)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Mon Jan 19 17:50:59 PST 2026


================

----------------
eugeneepshteyn wrote:

> if you do this, you may actually not need to deal with changing the function type

I tried this, but without generating convert operation I get this:
```
error: loc(".../ignore-tkr-c-descriptor.f90":36:5): 'fir.convert' op invalid type conversion'!fir.ref<!fir.box<!fir.heap<!fir.array<?xf32>>>>' / '!fir.box<!fir.array<?xf32>>'
error: loc(".../ignore-tkr-c-descriptor.f90":50:5): 'fir.convert' op invalid type conversion'!fir.ref<!fir.box<!fir.heap<!fir.array<?xf32>>>>' / '!fir.box<!fir.array<?xf32>>'
error: verification of lowering to FIR failed
```
I addressed your other comments, I hope. I will upload updated PR shortly.

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


More information about the flang-commits mailing list