diff options
author | Peixin Qiao <qiaopeixin@huawei.com> | 2022-11-04 22:15:58 +0800 |
---|---|---|
committer | Peixin Qiao <qiaopeixin@huawei.com> | 2022-11-04 22:15:58 +0800 |
commit | 749242668885d86a4f8bd6a5e697250b6cdb36d3 (patch) | |
tree | 9d4001807d4561bec9a99872676368e61917f25d /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4b604cc27e28a0edcb22a5ae5f29b8ff3bd0eacf (diff) | |
download | llvm-749242668885d86a4f8bd6a5e697250b6cdb36d3.zip llvm-749242668885d86a4f8bd6a5e697250b6cdb36d3.tar.gz llvm-749242668885d86a4f8bd6a5e697250b6cdb36d3.tar.bz2 |
[flang] Fix function result rewrite
When the function result is `type(c_ptr/c_funptr)`, and the function has
or does not have BIND(C) attribute, the function result is not taken as
the first argument of the function call in other compilers such as
gfortran and ifort. Fix it to be consistent with gfortran/ifort by
changing the abstract result type check.
Fix #58739.
Reviewed By: PeteSteinfeld, jeanPerier
Differential Revision: https://reviews.llvm.org/D137236
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions