llvm-project
1ead51a8 - [flang] fix C_PTR function result lowering (#100082)

Commit
1 year ago
[flang] fix C_PTR function result lowering (#100082) Functions returning C_PTR were lowered to function returning intptr (i64 on 64bit arch). This caused conflicts when these functions were defined as returning !fir.ref<none>/llvm.ptr in other compiler generated contexts (e.g., malloc). Lower them to return !fir.ref<none>. This should deal with https://github.com/llvm/llvm-project/issues/97325 and https://github.com/llvm/llvm-project/issues/98644.
Author
Parents
Loading