diff options
| author | Daniel Chen <cdchen@ca.ibm.com> | 2024-02-07 11:36:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-07 11:36:26 -0500 |
| commit | 7e4ac8541dcc389ca8f0d11614e19ea7bae07af7 (patch) | |
| tree | ac6339b139e490bb5b2699a738ee138382e0a66c /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
| parent | 7212b4ae09abe5ba0f9a6ea608ebb6dbfad48b73 (diff) | |
[Flang] Use specific symbol rather than generic symbol as procInterface to declare procedure pointer. (#80738)
Flang crashes when lowering the type of `p1` with the following code.
The problem is when it sets up the `procInterface`, it uses the generic
symbol `int`, not the specific `int`. This PR is to correct that.
```
INTERFACE Int
integer FUNCTION Int(arg)
integer :: arg
END FUNCTION
END INTERFACE
integer :: res
procedure(int), pointer :: p1
p1 => int
res = p1(4)
end
```
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions
