The existing codegen was for loop variables in io implied do loop
was not working correctly for pointer, allocatable variables. Rather
than finding the symbol address directly, use Evaluate Expression to
find the correct symbol and find the expression address from it. This
is similar to the handling for loop variables in fir.do_loop.
This is patch is part of upstreaming code from fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project.
clang-format not found in user’s local PATH; not linting file.