[all-commits] [llvm/llvm-project] 1ead51: [flang] fix C_PTR function result lowering (#100082)
jeanPerier via All-commits
all-commits at lists.llvm.org
Wed Jul 24 01:24:26 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1ead51a86c6c746a1b9948ca1ee142df223ffebd
https://github.com/llvm/llvm-project/commit/1ead51a86c6c746a1b9948ca1ee142df223ffebd
Author: jeanPerier <jperier at nvidia.com>
Date: 2024-07-24 (Wed, 24 Jul 2024)
Changed paths:
M flang/lib/Optimizer/Builder/FIRBuilder.cpp
M flang/lib/Optimizer/Transforms/AbstractResult.cpp
M flang/test/Fir/abstract-results.fir
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list