This is an archive of the discontinued LLVM Phabricator instance.

[flang] Lower character result of bind(c) function by value
ClosedPublic

Authored by clementval on Sep 23 2022, 6:21 AM.

Details

Summary

BIND(C) Function returning character must return it by value and
not as hidden argument like done currently. This patch update the
code to return it by value for both use cases.

Diff Detail

Event Timeline

clementval created this revision.Sep 23 2022, 6:21 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 23 2022, 6:21 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Sep 23 2022, 6:21 AM
PeteSteinfeld accepted this revision.Sep 23 2022, 7:40 AM

Aside from the clang-format diff, all builds and tests correctly and looks good.

flang/lib/Lower/ConvertVariable.cpp
1535

It looks like clang-format needs to be run.

This revision is now accepted and ready to land.Sep 23 2022, 7:40 AM
clementval added inline comments.Sep 23 2022, 11:03 AM
flang/lib/Lower/ConvertVariable.cpp
1535

My bad. I'll update my clang version. Looks like smth changed from 14.