diff options
author | jeanPerier <jperier@nvidia.com> | 2023-10-09 09:29:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 09:29:16 +0200 |
commit | 886843170621d11a775aaa72b9c1ad94b076fa16 (patch) | |
tree | 0998a4e92c05186ee7deda314fcebaf96b7942e7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 87b2682ad22bdaa2d8a95cb94a24603cf39a4c1f (diff) | |
download | llvm-886843170621d11a775aaa72b9c1ad94b076fa16.zip llvm-886843170621d11a775aaa72b9c1ad94b076fa16.tar.gz llvm-886843170621d11a775aaa72b9c1ad94b076fa16.tar.bz2 |
[flang] Set func.func arg attributes for procedure designators (#68420)
Currently, if the first usage of a procedure not defined in the file was
inside a procedure designator reference (not a call to it), the lowered
func.func lacked the argument attributes if any.
Fix this by using `CallInterface<T>::declare` too in SignatureBuilder to
create a new func.func instead of using custom code.
Note: this problem was made worse by the fact that module variables
fir.global are currently lowered before the module procedures func.func
are created. I will try to fix that in a later patch (the debug location
may still be wrong in certain cases) because there is quite some test
fallout when changing the order of globals/funcop in the output.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions