Krzysztof Parzyszek 564e04b703
[flang][OpenMP] Use function symbol on DECLARE TARGET (#134107)
Consider:
```
function foo()
  !$omp declare target(foo) ! This `foo` was a function-result symbol
  ...
end
```
When resolving symbols, for this case use the symbol corresponding to
the function instead of the symbol corresponding to the function result.

Currently, this will result in an error:
```
error: A variable that appears in a DECLARE TARGET directive must be
declared in the scope of a module or have the SAVE attribute, either
explicitly or implicitly
```
2025-04-02 15:16:33 -05:00
..
2025-02-27 14:32:30 -08:00
2025-01-08 13:15:51 -08:00
2025-01-08 13:15:51 -08:00
2024-12-18 07:02:37 -08:00
2024-12-18 07:02:37 -08:00